Image & Canvas
decimalToHex
$decimalToHex — Converts a decimal color (0 to 16777215) into a six-digit uppercase hexadecimal code, without #.
Converts a decimal color (0 to 16777215) into a six-digit uppercase hexadecimal code, without #.
Syntax
$decimalToHex[decimal]
Parameters
- decimal (Integer, required) — Decimal color, 0 to 16777215
Return Value
- String.
Usage
$decimalToHex[decimal] → result
Example
$sendMessage[$decimalToHex[decimal]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.