MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / constructor

Method constructor

packages/frontend/src/ui/color.ts:72–80  ·  view source on GitHub ↗

* Creates an instance of the RGBA class. * * @param r - The red component of the RGBA color. * @param g - The green component of the RGBA color. * @param b - The blue component of the RGBA color. * @param a - The alpha component (opacity) of the RGBA color.

(
		r: number,
		g: number,
		b: number,
		a: number,
	)

Source from the content-addressed store, hash-verified

70 * @param a - The alpha component (opacity) of the RGBA color.
71 */
72 constructor(
73 r: number,
74 g: number,
75 b: number,
76 a: number,
77 ) {
78 void super(r, g, b)
79 this.a = a
80 }
81
82 /** Returns a string representation of the RGBA color in the format "rgb(r g b / a)". */
83 toString = rgba_to_string.bind(null, this)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected