MCPcopy Create free account
hub / github.com/breck7/scroll / rgbn

Function rgbn

external/.d3.js:3120–3122  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

3118}
3119
3120function rgbn(n) {
3121 return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
3122}
3123
3124function rgba(r, g, b, a) {
3125 if (a <= 0) r = g = b = NaN;

Callers 1

colorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected