MCPcopy
hub / github.com/plotly/plotly.js / calculateColor

Function calculateColor

src/lib/gl_format_color.js:14–18  ·  view source on GitHub ↗
(colorIn, opacityIn)

Source from the content-addressed store, hash-verified

12var opacityDflt = 1;
13
14function calculateColor(colorIn, opacityIn) {
15 var colorOut = colorIn;
16 colorOut[3] *= opacityIn;
17 return colorOut;
18}
19
20function validateColor(colorIn) {
21 if(isNumeric(colorIn)) return colorDfltRgba;

Callers 1

formatColorFunction · 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…