MCPcopy Create free account
hub / github.com/Sioxas/data-screen / fastMapToColor

Function fastMapToColor

src/utils/echarts-liquidfill.js:6511–6529  ·  view source on GitHub ↗

* Map value to color. Faster than mapToColor methods because color is represented by rgba array * @param {number} normalizedValue A float between 0 and 1. * @param {Array. >} colors List of rgba color array * @param {Array. } [out] Mapped gba color array

(normalizedValue, colors, out)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

clampCssByteFunction · 0.85
lerpFunction · 0.85

Tested by

no test coverage detected