Syntax
- string colorHexToB(hex)
Parameters
- hex—stringHex color string in the format "#rrggbb" or "#rrggbboo"
Returns
Returns B value in [0,1] after converting hex color to RGB.
Description
The colorHexToB function converts a hex color string to RGB and returns the B value.
Related
Examples
example.1
colorHexToB("#4080BF")
# result = 0.7490196078431374
example.2
colorHexToB("#4080BF80")
# result = 0.7490196078431374