Class mxn.util.Color
Defined in: mxn.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Class for converting between HTML and RGB integer color formats.
|
Method Attributes | Method Name and Description |
---|---|
Retrieve the color value as an HTML hex string.
|
|
setHexColor(strHexColor)
Set the color from the supplied HTML hex string.
|
Class Detail
mxn.util.Color()
Class for converting between HTML and RGB integer color formats.
Accepts either a HTML color string argument or three integers for R, G and B.
Method Detail
{String}
getHexColor()
Retrieve the color value as an HTML hex string.
- Returns:
- {String} Format '#00FF88'.
setHexColor(strHexColor)
Set the color from the supplied HTML hex string.
- Parameters:
- {String} strHexColor
- A HTML hex color string e.g. '#00FF88'.