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

Function rgbn

docs/app/js/sanddance-app.js:2395–2397  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

2393}
2394exports.default = color;
2395function rgbn(n) {
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);

Callers 1

colorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected