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

Function rgbConvert

docs/app/js/sanddance-app.js:2402–2407  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

2400 return new Rgb(r, g, b, a);
2401}
2402function rgbConvert(o) {
2403 if (!(o instanceof Color)) o = color(o);
2404 if (!o) return new Rgb;
2405 o = o.rgb();
2406 return new Rgb(o.r, o.g, o.b, o.opacity);
2407}
2408function rgb(r, g, b, opacity) {
2409 return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
2410}

Callers 1

rgbFunction · 0.70

Calls 1

colorFunction · 0.70

Tested by

no test coverage detected