Convert a hexadecimal to an array of numbers or an array of numbers to a hexadecimal with the objective of doing mathematical operations with hexadecimal colors
Convert a hex string to an array of numbers
hexToInts("#5544ff") // [5,5,4,4,15,15]hexToInts("ccddff") // [12,12,13,13,15,15]
Hex string
Convert an array of numbers to a hex string
inToHex([15,15,10,10,9,9,00]) // "#ffaa9900"inToHex([5,5,4,4,15,15]) // #5544ff
array of numbers from 0 to 15
Generated using TypeDoc
Convert a hexadecimal to an array of numbers or an array of numbers to a hexadecimal with the objective of doing mathematical operations with hexadecimal colors