<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Fractal Folds &#187; color picker</title>
	<atom:link href="http://raghavgupta.wordpress.com/category/color-picker/feed/" rel="self" type="application/rss+xml" />
	<link>http://raghavgupta.wordpress.com</link>
	<description>A chaotic quest toward understanding the brain</description>
	<lastBuildDate>Thu, 24 Sep 2009 15:59:04 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='raghavgupta.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/d42a1afcfee467ab4abadf3b45cca699?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Fractal Folds &#187; color picker</title>
		<link>http://raghavgupta.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://raghavgupta.wordpress.com/osd.xml" title="Fractal Folds" />
		<item>
		<title>An unexpurgated color wheel &#8211; an interesting challenge</title>
		<link>http://raghavgupta.wordpress.com/2007/05/06/an-unexpurgated-color-wheel-an-interesting-challenge/</link>
		<comments>http://raghavgupta.wordpress.com/2007/05/06/an-unexpurgated-color-wheel-an-interesting-challenge/#comments</comments>
		<pubDate>Mon, 07 May 2007 06:14:10 +0000</pubDate>
		<dc:creator>Raghav Gupta</dc:creator>
				<category><![CDATA[color picker]]></category>
		<category><![CDATA[color wheel]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[fractal]]></category>
		<category><![CDATA[mobius strip]]></category>

		<guid isPermaLink="false">http://raghavgupta.wordpress.com/2007/05/06/an-unexpurgated-color-wheel-an-interesting-challenge/</guid>
		<description><![CDATA[Have you ever seen a color picker widget anywhere which shows the entire spectrum of all possible colors in one single image? I mean, sometimes there are separate hue, saturation, brightness selectors, sometimes just two out of these three. The selection of the intended color always requires some interactivity by way of dragging some sliders, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raghavgupta.wordpress.com&blog=767067&post=12&subd=raghavgupta&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p align="left"><a href="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare2.png" title="All colors"></a><a href="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare.png" title="Image with all colors"></a>Have you ever seen a color picker widget anywhere which shows the entire spectrum of all possible colors in one single image? I mean, sometimes there are separate hue, saturation, brightness selectors, sometimes just two out of these three. The selection of the intended color always requires some interactivity by way of dragging some sliders, or clicking in an image which changes dynamically based upon the selected position in another image. If you have seen anything anywhere which avoids the above by showing all the colors in one single static image, please let me know. There are some clever attempts out there to minimize the number of clicks and the number of elements in the widget, but none of them includes both black and white and all the shades of grey along with all the colors<a href="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare1.png" title="Single Image with all possible colors"></a> in a logical manner in the same image.</p>
<p>The nature of this problem arises from the familiar difficulty we face in so many other things: there are 3 primary colors, but the computer screen has only two dimensions. We can create all possible colors by combining the three basic colors(red, green, blue) in various proportions, so the most intuitive co-ordinate system for building a color space would be a cube.  Black at the origin, white at the other end of the diagonal, and pure red, blue, green at the vertices nearest to the origin. Feels good, but try representing it on a non-interactive 2d computer screen without loss of information. In general, my test is: if it can be painted on a piece of paper without loss of information, its good.</p>
<p>Even when we have two separate widgets for hue and brightness, the hue widget allows for a lot of flexibility in design. This widget needs to show <strong>only</strong> <strong>the proportion </strong>of the 3 component colors in a 2d plane, not the actual values of each. Even with this additional degree of freedom, I have noticed that many applications do not deliver the right solution. A lot of them allow for all possible combinations of <strong>either</strong> of any of two colors from the three, but not various combinations of all the three colors simultaneously.</p>
<p>Here is one of my initial attempts at creating a complete hue selection image:</p>
<p align="center"><a href="http://raghavgupta.files.wordpress.com/2007/05/colortriangle.png" title="Color Triangle"><img src="http://raghavgupta.files.wordpress.com/2007/05/colortriangle.png" alt="Color Triangle" /></a></p>
<p>Now on to an attempt to solve the initial problem. We need to show all the hues in the above triangle, AND show them with various intensities from dark to bright, in the SAME image, with minimum discontinuity from color to color, brightness to brightness. This is what I got on the first attempt:</p>
<p><a href="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare1.png" title="Single Image with all possible colors"><img src="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare1.png" alt="Single Image with all possible colors" /></a></p>
<p>Useless, isn&#8217;t it? The discontinuity is extreme. Here&#8217;s my next attempt:</p>
<p><a href="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare2.png" title="All colors"><img src="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare2.png" alt="All colors" /></a></p>
<p>Much better, but the aspect ratio is pretty wierd. Here&#8217;s the next attempt:</p>
<p><a href="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare.png" title="Image with all colors"><img src="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare.png" alt="Image with all colors" /></a></p>
<p>This is the best I&#8217;ve come up with so far, although I acknowledge it is not even close to being end-user acceptable. The locality of similar colors is still too low. It even looks as if there are lots of duplicate regions or that the entire spectrum is not accounted for, but both of these are optical illusions. Nothing is duplicated, and everything is included.</p>
<p>If anyone has ever seen a better solution, please let me know, I&#8217;m all eyes. Meanwhile I&#8217;ll continue trying myself. The one direction I am thinking of going next is a non standard shape for the image. Maybe a spiral? A mobius strip? A fractal pattern? Sometimes I think a sierpinski gasket might be the key to the solution, but I can&#8217;t quite place how.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raghavgupta.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raghavgupta.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raghavgupta.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raghavgupta.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raghavgupta.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raghavgupta.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raghavgupta.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raghavgupta.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raghavgupta.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raghavgupta.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raghavgupta.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raghavgupta.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raghavgupta.wordpress.com&blog=767067&post=12&subd=raghavgupta&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raghavgupta.wordpress.com/2007/05/06/an-unexpurgated-color-wheel-an-interesting-challenge/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/215cc1ac1d47524af78bde37c9764177?s=96&#38;d=identicon" medium="image">
			<media:title type="html">raghavgupta</media:title>
		</media:content>

		<media:content url="http://raghavgupta.files.wordpress.com/2007/05/colortriangle.png" medium="image">
			<media:title type="html">Color Triangle</media:title>
		</media:content>

		<media:content url="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare1.png" medium="image">
			<media:title type="html">Single Image with all possible colors</media:title>
		</media:content>

		<media:content url="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare2.png" medium="image">
			<media:title type="html">All colors</media:title>
		</media:content>

		<media:content url="http://raghavgupta.files.wordpress.com/2007/05/allcolorssquare.png" medium="image">
			<media:title type="html">Image with all colors</media:title>
		</media:content>
	</item>
	</channel>
</rss>