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

Function rgb_int

packages/frontend/src/ui/color.ts:123–125  ·  view source on GitHub ↗
(rgb: RGB)

Source from the content-addressed store, hash-verified

121 * @returns A numeric value representing the RGB color.
122 */
123export function rgb_int(rgb: RGB): number {
124 return (rgb.r << 16) | (rgb.g << 8) | rgb.b
125}
126
127/**
128 * Converts a numeric representation (32-bit integer) to an RGB color.

Callers 1

rgb_to_rgba_intFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…