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

Function parseSeriesColorToRgba01

src/renderers/createLineRenderer.ts:35–36  ·  view source on GitHub ↗
(color: string)

Source from the content-addressed store, hash-verified

33
34const clamp01 = (v: number): number => Math.min(1, Math.max(0, v));
35const parseSeriesColorToRgba01 = (color: string): Rgba =>
36 parseCssColorToRgba01(color) ?? ([0, 0, 0, 1] as const);
37
38const isTupleDataPoint = (
39 point: ResolvedLineSeriesConfig['data'][number]

Callers 1

prepareFunction · 0.70

Calls 1

parseCssColorToRgba01Function · 0.90

Tested by

no test coverage detected