new RGBColor
RGBColor class - Convert a RGB value into Hexadecimal and rgb() HTML color String.
Parameters:
Name | Type | Description |
---|---|---|
color |
Array | RGB color components [r,g,b] |
- Source:
- ../js/jheatmap-1.0.0.js, line 257
Example
new jheatmap.utils.RGBColor([255,123,42]);
Methods
-
toHex
-
- Source:
- ../js/jheatmap-1.0.0.js, line 273
Returns:
Hexadecimal representation of the color. Example: #FF0323 -
toRGB
-
- Source:
- ../js/jheatmap-1.0.0.js, line 289
Returns:
RGB representation of the color. Example: rgb(255,123,42)