Convert a decimal number to hexadecimal. Adds a leading 0 if needed to be two digits in total.
numberToHex(221) // return 'dd'
The number (an RGB number between 0 and 255) to convert to hexadecimal.
Generated using TypeDoc
Convert a decimal number to hexadecimal. Adds a leading 0 if needed to be two digits in total.
Example