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

Function rgba_int

packages/frontend/src/ui/color.ts:143–145  ·  view source on GitHub ↗
(rgba: RGBA)

Source from the content-addressed store, hash-verified

141 * @returns A numeric value representing the RGBA color.
142 */
143export function rgba_int(rgba: RGBA): number {
144 return (rgba.r << 24) | (rgba.g << 16) | (rgba.b << 8) | rgba.a
145}
146
147/**
148 * Converts a numeric representation (32-bit integer) to an RGBA color.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…