Sign In

$getColorChannel[]

Extracts a specific channel (e.g. red, hue, saturation) from a color code.

v1.0.0+ Requires Brackets

Usage

$getColorChannel[;]
Also callable as
$colorChannel $extractColorChannel

Arguments

NameTypeRequiredDescription
color
StringYesThe color string to extract from.
channel
YesThe channel to extract (e.g. red, hue, cyan).

Output

Number

Was this page helpful?