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

Function hex

external/.d3.js:3196–3199  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

3194}
3195
3196function hex(value) {
3197 value = clampi(value);
3198 return (value < 16 ? "0" : "") + value.toString(16);
3199}
3200
3201function hsla(h, s, l, a) {
3202 if (a <= 0) h = s = l = NaN;

Callers 2

rgb_formatHexFunction · 0.85
rgb_formatHex8Function · 0.85

Calls 2

clampiFunction · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected