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

Function mapToColor

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

* @param {number} normalizedValue A float between 0 and 1. * @param {Array. } colors Color list. * @param {boolean=} fullOutput Default false. * @return {(string|Object)} Result color. If fullOutput, * return {color: ..., leftIndex: ..., right

(normalizedValue, colors, fullOutput)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

parseFunction · 0.85
stringifyFunction · 0.85
clampCssByteFunction · 0.85
lerpFunction · 0.85
clampCssFloatFunction · 0.85

Tested by

no test coverage detected