MCPcopy Create free account
hub / github.com/bytebase/bytebase / colorToRgbString

Function colorToRgbString

frontend/src/utils/css.ts:47–48  ·  view source on GitHub ↗
(color: Color)

Source from the content-addressed store, hash-verified

45 );
46
47export const colorToRgbString = (color: Color): string =>
48 [color.red, color.green, color.blue].map(channelToByte).join(" ");
49
50export const hexToColor = (hex: string): Color => {
51 const [red, green, blue] = hexToRgb(hex);

Callers 1

css.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected