Reference > Methods
clrGetBlue(color)
Definition
Integer clrGetBlue(String color)
Description
Returns an Integer between 0-255 that is the blue component 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
| Integer r1 = clrGetBlue("#AABBCC"); // r1 == 204
Integer r2 = clrGetBlue("#AABBCCDD"); // r2 == 204
Integer r3 = clrGetBlue("#ABC"); // r3 == 204
Integer r4 = clrGetBlue("#ABCD"); // r4 == 204
Object r5 = clrGetBlue("invalid"); // r5 == null
Object r6 = clrGetBlue(null); // r6 == null
|