MCPcopy Create free account
hub / github.com/codecombat/codecombat / hexToHSL

Function hexToHSL

app/core/utils.js:587–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585const objectIdToDate = objectID => new Date(parseInt(objectID.toString().slice(0, 8), 16) * 1000)
586
587const hexToHSL = hex => rgbToHsl(hexToR(hex), hexToG(hex), hexToB(hex))
588
589var hexToR = h => parseInt((cutHex(h)).substring(0, 2), 16)
590var hexToG = h => parseInt((cutHex(h)).substring(2, 4), 16)

Callers 1

createShapeButtonsMethod · 0.85

Calls 3

hexToRFunction · 0.85
hexToGFunction · 0.85
hexToBFunction · 0.85

Tested by

no test coverage detected