<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>robot campfire &#187; graphics</title>
	<atom:link href="http://www.planetraven.de/blog/tags/graphics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.planetraven.de/blog</link>
	<description>davids weblog</description>
	<lastBuildDate>Sun, 10 Jan 2010 19:46:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/de/</creativeCommons:license>
		<item>
		<title>Using HSV to build a traffic light</title>
		<link>http://www.planetraven.de/blog/2009/09/27/using-hsv-to-build-a-traffic-light/</link>
		<comments>http://www.planetraven.de/blog/2009/09/27/using-hsv-to-build-a-traffic-light/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 21:19:36 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.planetraven.de/blog/?p=86</guid>
		<description><![CDATA[A small tip for anyone working on some sort of data visualization. If you have values that lie between 0.0 and 1.0 (or 0% and 100%, or $some_value and $some_other_value), you can use a simple interpolation in the HSV (or HSB) color space to get a nice &#8220;traffic light&#8221; range of colors from red to [...]]]></description>
			<content:encoded><![CDATA[<p>A small tip for anyone working on some sort of data visualization. If you have values that lie between 0.0 and 1.0 (or 0% and 100%, or <em>$some_value</em> and <em>$some_other_value</em>), you can use a simple interpolation in the HSV (or HSB) color space to get a nice &#8220;traffic light&#8221; range of colors from red to green via yellow in the middle, which is fine for displaying something that is &#8220;OK&#8221; if the values are low and gets &#8220;critical&#8221;  or &#8220;dangerous&#8221; for higher values (or vice versa). Just set the saturation and value (or brightness) parameters to 100% and use your data to vary the hue between 0° (which means red) and 120° (which is green). Since yellow sits right in the middle of that scale at 60° this gives you a smooth transition from red to yellow to green, which may look like this:</p>
<div id="attachment_92" class="wp-caption aligncenter" style="width: 210px"><img class="size-full wp-image-92" title="processing output" src="http://www.planetraven.de/blog/wp-content/uploads/output.png" alt="hue scale from 0° to 120°" width="200" height="30" /><p class="wp-caption-text">hue scale from 0° to 120°</p></div>
<p>Now this might be common knowledge, but i just stumbled upon it some time ago and thought it was a useful tidbit that i wanted to share.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.planetraven.de/blog/2009/09/27/using-hsv-to-build-a-traffic-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/de/</creativeCommons:license>
	</item>
	</channel>
</rss>
