Reference > Methods
clrGetHue(color)
Definition
Double clrGetHue(String color)
Description
RReturns an Integer between 0-255 that is the hue of the supplied color. Returns null if supplied color is null or invalid format.
Parameter Definition
Name |
Type |
Description |
color |
String |
Color to inspect in rrggbb format |
Examples
| Double r1 = clrGetHue("#FF0000"); // r1 == 0.005493247882810712
Double r2 = clrGetHue("#FFFF00"); // r2 == 59.997253376058595
Double r3 = clrGetHue("#FFFFFF"); // r3 == 0.0
Double r4 = clrGetHue("#ABC"); // r4 == 210.00137331197072
Double r5 = clrGetHue("#ABCD"); // r5 == 210.00137331197072
Object r6 = clrGetHue("invalid"); // r6 == null
Object r7 = clrGetHue(null); // r7 == null
|