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

Function rgba_to_string

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

Source from the content-addressed store, hash-verified

100 * @returns A string in the format "rgb(r g b / a)" representing the RGBA color.
101 */
102export function rgba_to_string(rgba: RGBA): string {
103 return `rgb(${rgba.r} ${rgba.g} ${rgba.b} / ${rgba.a})`
104}
105
106/**
107 * Converts an RGB color to an RGBA color with the specified alpha component.

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…