Skip to content
Image & Canvas hexGreen

$hexGreen — Returns the green component (0 to 255) of a six-digit hexadecimal color.

Returns the green component (0 to 255) of a six-digit hexadecimal color.

Syntax

$hexGreen[hex]

Parameters

  • hex (String, required) — Six-digit hexadecimal color

Return Value

  • String.

Usage

$hexGreen[hex] → result

Example

$sendMessage[$hexGreen[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.