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

Function isColormapCircular

src/traces/surface/convert.js:118–128  ·  view source on GitHub ↗
(colormap)

Source from the content-addressed store, hash-verified

116};
117
118function isColormapCircular(colormap) {
119 var first = colormap[0].rgb;
120 var last = colormap[colormap.length - 1].rgb;
121
122 return (
123 first[0] === last[0] &&
124 first[1] === last[1] &&
125 first[2] === last[2] &&
126 first[3] === last[3]
127 );
128}
129
130var shortPrimes = [
131 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97,

Callers 1

convert.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…