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

Function scheme

docs/app/js/sanddance-app.js:127099–127105  ·  view source on GitHub ↗
(name, scheme1)

Source from the content-addressed store, hash-verified

127097apply(discrete, colors);
127098apply(continuous, (_)=>interpolateColors(colors(_)));
127099function scheme(name, scheme1) {
127100 name = name && name.toLowerCase();
127101 if (arguments.length > 1) {
127102 schemes[name] = scheme1;
127103 return this;
127104 } else return schemes[name];
127105}
127106const SymbolLegend = "symbol";
127107const DiscreteLegend = "discrete";
127108const GradientLegend = "gradient";

Callers 1

applyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected