SymbolColor can be instantiated with HSV values, RGB values, or a string (either RGBA or hex) Most raw values supplied should be in the range 0..1, though RGB can also be supplied in byte form The intent is not to have to worry about what kind of color representation you have -- just toss it in here and it works
Blend this color with another by an amount and return a new color Uses linear interpolation in the RGB colorspace.
ranges from 0..1
another instance of SymbolColor
Darkens the color by an amount and returns a hex string
ranges from 0..1
Is this color the same as the supplied color?
Lightens the color by an amount and returns a hex string
ranges from 0..1
Return a new SymbolColor with the transparency set to alpha
Convert to an instance of esri.Color
Returns a hexidecimal string representing the color.
Returns the raw RGB values of the color See https://en.wikipedia.org/wiki/HSL_and_HSV#Converting_to_RGB for a detailed discussion of this algorithm.
Returns a string like "rgba(255, 255, 255, 1)" representing the color.
Encapulates some common color operations useful for making symbology. Primary use is to generate the RGB hexidecimal color code for a color in HSV (hue, saturation, value) color space. This is far preferable to using RGB for mapping applications, as random colors generated in RGB will trend towards the dark and unsaturated, and often look quite similar. To use, supply a number between 0 and 1 for each of hue, saturation, and value. To generate a series of random colors with a consistent tone, supply a random number for 'hue' only.