Class for representing RGB colors.
mapfish. | Class for representing RGB colors. |
Constructor | |
mapfish. | |
Functions | |
equals | Returns true if the colors at the same. |
setFromHex | Sets the color from a color hex string |
setFromRgb | Sets the color from a color rgb string |
toHexString | Converts the rgb color to hex string |
getColorsArrayByRgbInterpolation | Get an array of colors based on RGB interpolation. |
mapfish.ColorRgb.getColorsArrayByRgbInterpolation = function( firstColor, lastColor, nbColors )
Get an array of colors based on RGB interpolation.
firstColor | {<mapfish.Color>} The first color in the range. |
lastColor | {<mapfish.Color>} The last color in the range. |
nbColors | {Integer} The number of colors in the range. |
Returns {Array({<mapfish.Color>})} The resulting array of colors.
Returns true if the colors at the same.
equals: function( color )
Sets the color from a color hex string
setFromHex: function( rgbHexString )
Sets the color from a color rgb string
setFromRgb: function( rgbString )
Converts the rgb color to hex string
toHexString: function()
Get an array of colors based on RGB interpolation.
mapfish.ColorRgb.getColorsArrayByRgbInterpolation = function( firstColor, lastColor, nbColors )