MCPcopy
hub / github.com/microsoft/SandDance / rgb

Function rgb

docs/app/js/sanddance-app.js:2408–2410  ·  view source on GitHub ↗
(r, g, b, opacity)

Source from the content-addressed store, hash-verified

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}
2411function Rgb(r, g, b, opacity) {
2412 this.r = +r;
2413 this.g = +g;

Callers

nothing calls this directly

Calls 3

rgbConvertFunction · 0.70
colorFunction · 0.70
opacityFunction · 0.70

Tested by

no test coverage detected