Color from Hex Code (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.14

Syntax

[the] colo[u]r[s] (from|of) hex[adecimal] code[s] %strings%

Description

Returns a proper argb color from a hex code string. The hex code must contain RRGGBB values, but can also contain a leading # or AARRGGBB format. Invalid codes will cause runtime errors.

Examples

send color from hex code "#FFBBA7"
send color from hex code "FFBBA7"
send color from hex code "#AAFFBBA7"

View source