Tag Archive for 'getcolornames()'

06
Sep

Converting color names to numbers using the StyleManager class

The following examples show how you can convert color names (such as “red”, “haloSilver”, “#FFFFFF”, and “0xFFFF00″) into numeric values, using the StyleManager class’s static getColorName() method and getColorNames() method.

Full code after the jump.

Continue reading ‘Converting color names to numbers using the StyleManager class’