MCPcopy Index your code
hub / github.com/microsoft/SandDance / addStops

Function addStops

docs/app/js/sanddance-app.js:122250–122254  ·  view source on GitHub ↗
(gradient2, stops)

Source from the content-addressed store, hash-verified

122248 return value4 == null ? dflt : value4;
122249}
122250function addStops(gradient2, stops) {
122251 const n = stops.length;
122252 for(let i = 0; i < n; ++i)gradient2.addColorStop(stops[i].offset, stops[i].color);
122253 return gradient2;
122254}
122255function gradient(context26, spec, bounds2) {
122256 const w5 = bounds2.width(), h10 = bounds2.height();
122257 let gradient3;

Callers 1

gradientFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected