Color():green()
Extracts the green color value from a hex color string.
Description
The green()
method extracts the green channel value from a hex color string. The hex color should be in the format "#RRGGBB" where GG represents the green component. This method returns the decimal value (0-255) of the green component.
Signature
green(): number
Returns
number
- The green channel value (0-255) from the hex color