MCPcopy Index your code
hub / github.com/plotly/plotly.js / colorArray2rbga

Function colorArray2rbga

src/components/colorscale/helpers.js:214–223  ·  view source on GitHub ↗
(colorArray)

Source from the content-addressed store, hash-verified

212}
213
214function colorArray2rbga(colorArray) {
215 var colorObj = {
216 r: colorArray[0],
217 g: colorArray[1],
218 b: colorArray[2],
219 a: colorArray[3]
220 };
221
222 return tinycolor(colorObj).toRgbString();
223}
224
225module.exports = {
226 hasColorscale: hasColorscale,

Callers 1

makeColorScaleFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…