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

Function parseColorStop

src/renderers/createScatterDensityRenderer.ts:104–104  ·  view source on GitHub ↗
(css: string)

Source from the content-addressed store, hash-verified

102 [lerp(a[0], b[0], t), lerp(a[1], b[1], t), lerp(a[2], b[2], t), lerp(a[3], b[3], t)] as const;
103
104const parseColorStop = (css: string): Rgba01 => parseCssColorToRgba01(css) ?? ([0, 0, 0, 1] as const);
105
106const getNamedStops = (name: 'viridis' | 'plasma' | 'inferno'): readonly string[] => {
107 // Compact stop lists (interpolated to 256 entries). These are standard-ish anchors.

Callers

nothing calls this directly

Calls 1

parseCssColorToRgba01Function · 0.90

Tested by

no test coverage detected