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

Method constructor

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

* Creates an instance of the RGB class. * * @param r - The red component of the RGB color. * @param g - The green component of the RGB color. * @param b - The blue component of the RGB color.

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

Source from the content-addressed store, hash-verified

49 * @param b - The blue component of the RGB color.
50 */
51 constructor(
52 public r: number,
53 public g: number,
54 public b: number,
55 ) {}
56
57 /** Returns a string representation of the RGB color in the format "rgb(r g b)". */
58 toString = rgb_to_string.bind(null, this)

Callers 2

decodeFunction · 0.45
updateCollapsedValueFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected