Xna Color Charts
I saw Brandon’s Xna Color Chart linked on Twitter, and thought it’d be great if the colors were sorted based on hue and value, so I went ahead and made some variations:
Large Boxes:
Colors, by Name
Colors, by Hue
Colors, by Hue (bands)
Colors, by Hue (luminance sorted)
Small Boxes:
Colors, by Name
Colors, by Hue
Colors, by Hue (bands)
Colors, by Hue (luminance sorted)
My favorite is the small hue bands.
June 16th, 2009 at 8:41 pm
I notice you mentioned using a constants class, which I wholly agree with - I also use a constants class for colors.
{java here, sorry}
public class Colors
{
public static class Greens
{
public static Color GreenYellow = new Color(173, 255, 47);
public static Color Chartreuse = new Color(127, 255, 0);
public static Color LawnGreen = new Color(124, 252, 0);
public static Color Lime = new Color(0, 255, 0);
…
}
}
so I can Reference colors like this: Colors.Greens.Lime
A big benefit is in the autocomplete. It does generate a bunch of extra objects, but I don’t have to think about the colors and I can always go back and remove the ones that aren’t being used - this then equates to the ‘flyweight’ GOF pattern.
Like you site and the quadtree explanations - thanks!