Skip to content
Math & Text hexToRgba

$hexToRgba — Converts HEX colors to a list of RGBA values.

Converts HEX colors to a list of RGBA values.

Syntax

$hexToRgba[hex]

Parameters

  • hex (String, required) — Colors like #ff000080

Return Value

  • String.

Usage

$hexToRgba[hex] → result

Example

$sendMessage[$hexToRgba[hex]]

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.