MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / parseHexByte

Function parseHexByte

src/utils/colors.ts:11–14  ·  view source on GitHub ↗
(hex: string)

Source from the content-addressed store, hash-verified

9};
10
11const parseHexByte = (hex: string): number => {
12 const n = Number.parseInt(hex, 16);
13 return Number.isFinite(n) ? n : 0;
14};
15
16const parseHexColorToRgba01 = (color: string): Rgba01 | null => {
17 const c = color.trim();

Callers 1

parseHexColorToRgba01Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected