<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Xna Color Charts</title>
	<atom:link href="http://www.kyleschouviller.com/xna/xna-color-charts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kyleschouviller.com/xna/xna-color-charts/</link>
	<description></description>
	<pubDate>Thu, 11 Mar 2010 12:55:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ray Case</title>
		<link>http://www.kyleschouviller.com/xna/xna-color-charts/comment-page-1/#comment-23521</link>
		<dc:creator>Ray Case</dc:creator>
		<pubDate>Wed, 17 Jun 2009 03:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschouviller.com/xna/xna-color-charts/#comment-23521</guid>
		<description>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!</description>
		<content:encoded><![CDATA[<p>I notice you mentioned using a constants class, which I wholly agree with - I also use a constants class for colors.</p>
<p>{java here, sorry}<br />
public class Colors<br />
{<br />
    public static class Greens<br />
    {<br />
        public static Color GreenYellow = new Color(173, 255, 47);<br />
        public static Color Chartreuse = new Color(127, 255, 0);<br />
        public static Color LawnGreen = new Color(124, 252, 0);<br />
        public static Color Lime = new Color(0, 255, 0);<br />
        &#8230;<br />
     }<br />
}</p>
<p>so I can Reference colors like this: Colors.Greens.Lime </p>
<p>A big benefit is in the autocomplete.  It does generate a bunch of extra objects, but I don&#8217;t have to think about the colors and I can always go back and remove the ones that aren&#8217;t being used - this then equates to the &#8216;flyweight&#8217; GOF pattern.</p>
<p>Like you site and the quadtree explanations - thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
