MCPcopy Index your code
hub / github.com/davidmerfield/randomColor / componentToHex

Function componentToHex

randomColor.js:335–338  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

333 var rgb = HSVtoRGB(hsv);
334
335 function componentToHex(c) {
336 var hex = c.toString(16);
337 return hex.length == 1 ? "0" + hex : hex;
338 }
339
340 var hex =
341 "#" +

Callers 1

HSVtoHexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…