Math & Text
rgbaToHex
$rgbaToHex — Converts groups of four RGBA values to a list of HEX colors.
Converts groups of four RGBA values to a list of HEX colors.
Syntax
$rgbaToHex[(alwaysIncludeAlpha);(allowShort);rgba]
Parameters
- alwaysIncludeAlpha (Boolean, optional) — true to keep the alpha even when opaque
- allowShort (Boolean, optional) — true to give a short form when possible
- rgba (String, required) — Values 0 to 255, by four
Return Value
- String.
Usage
$rgbaToHex[alwaysIncludeAlpha;allowShort;rgba] → result
Example
$sendMessage[$rgbaToHex[alwaysIncludeAlpha;allowShort;rgba]]
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.