MCPcopy Create free account
hub / github.com/microsoft/SandDance / colors

Function colors

docs/app/js/sanddance-app.js:127088–127092  ·  view source on GitHub ↗
(palette)

Source from the content-addressed store, hash-verified

127086 set3: "8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"
127087};
127088function colors(palette) {
127089 const n = palette.length / 6 | 0, c = new Array(n);
127090 for(let i = 0; i < n;)c[i] = "#" + palette.slice(i * 6, ++i * 6);
127091 return c;
127092}
127093function apply(_, f) {
127094 for(const k in _)scheme(k, f(_[k]));
127095}

Callers 1

sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected