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

Function putColor

src/traces/heatmap/plot.js:619–624  ·  view source on GitHub ↗
(pixels, pxIndex, c)

Source from the content-addressed store, hash-verified

617}
618
619function putColor(pixels, pxIndex, c) {
620 pixels[pxIndex] = c[0];
621 pixels[pxIndex + 1] = c[1];
622 pixels[pxIndex + 2] = c[2];
623 pixels[pxIndex + 3] = Math.round(c[3] * 255);
624}

Callers 1

plot.jsFile · 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…