A simple container for a color, mainly used to convert from css format to numbers and vice-versa
The constructor
| Name | Type | Description |
|---|---|---|
| red | null or Number | The red value of the color. Must be between 0 and 255. If null set to 255 |
| green | null or Number | The green value of the color. Must be between 0 and 255. If null set to 255 |
| blue | null or Number | The blue value of the color. Must be between 0 and 255. If null set to 255 |
The blue value of the color
The color in the css HEX format '#RRGGBB' or 'rgb( )'
The green value of the color
The bigest acceptable value fo a color
The smallest acceptable value fo a color
A static method that build a Color object from a css color string
| Name | Type | Description |
|---|---|---|
| cssColor | String | The css color string |