| Libraries | 
 | 
Color | Source Code | 
 | 
  | 
| Types | ||||
  | ||||
color
const type: color
- 
Describes colors with red, green and blue colors of light. The range of redLight, greenLight and blueLight is from 0 to 65535.
 
| Operator Summary | |||||
| boolean | 
  | ||||
| boolean | 
  | ||||
| color | 
  | ||||
| Function Summary | |||||
| color | 
  | ||||
| color | 
  | ||||
| integer | 
  | ||||
| integer | 
  | ||||
| Operator Detail | 
=
const func boolean: (in color: col1) = (in color: col2)
- 
Check if two color values are equal.
 - Returns:
 - TRUE if both values are equal, FALSE otherwise.
 
<>
const func boolean: (in color: col1) <> (in color: col2)
- 
Check if two color values are not equal.
 - Returns:
 - FALSE if both values are equal, TRUE otherwise.
 
+
const func color: (in color: col1) + (in color: col2)
- 
Add two colors in an additive color system.
 - Returns:
 - the sum of the two colors.
 
| Function Detail | 
color
const func color: color (in integer: red, in integer: green, in integer: blue)
- 
Create a color value from the red, green and blue colors of light. The range for red, green and blue is from 0 to 65535.
 - Returns:
 - the created color value.
 
gray
const func color: gray (in integer: brightness)
- 
Create a gray color value from the brightness. The range for brightness is from 0 to 65535.
 - Returns:
 - the created color value.
 
compare
const func integer: compare (in color: col1, in color: col2)
- 
Compares two colors.
 - Returns:
 - -1, 0 or 1 if the first argument is considered to be respectively less than, equal to, or greater than the second.
 
hashCode
const func integer: hashCode (in color: col)
- 
Compute the hash value of a color.
 - Returns:
 - the hash value.
 
| 
 | 
  | 
