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

Function rgba

docs/app/js/sanddance-app.js:2398–2401  ·  view source on GitHub ↗
(r, g, b, a)

Source from the content-addressed store, hash-verified

2396 return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
2397}
2398function rgba(r, g, b, a) {
2399 if (a <= 0) r = g = b = NaN;
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;

Callers 1

colorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected