<?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/"
	>

<channel>
	<title>PiXELWiT &#187; Color</title>
	<atom:link href="http://www.pixelwit.com/blog/tag/color/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelwit.com/blog</link>
	<description>Making Flash Go</description>
	<lastBuildDate>Fri, 02 Dec 2011 14:21:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flash Scripted Conic Angle Gradient</title>
		<link>http://www.pixelwit.com/blog/2008/09/flash-scripted-conic-angle-gradient/</link>
		<comments>http://www.pixelwit.com/blog/2008/09/flash-scripted-conic-angle-gradient/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 14:00:25 +0000</pubDate>
		<dc:creator>Pixelwit</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[Draw]]></category>
		<category><![CDATA[SWFs]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.pixelwit.com/blog/?p=654</guid>
		<description><![CDATA[Flash lacks a ‘conic’ gradient fill which has been a mainstay of drawing apps like CorelDraw and Photoshop (where it’s called an “Angle Gradient”) for ages.  This Flash tutorial explains how to code your own conic angle gradient.]]></description>
			<content:encoded><![CDATA[
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_conic-gradient_01_965605834"
			class="flashmovie"
			width="500"
			height="370">
	<param name="movie" value="http://www.pixelwit.com/blog/wp-content/uploads/2008/09/conic-gradient_01.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.pixelwit.com/blog/wp-content/uploads/2008/09/conic-gradient_01.swf"
			name="fm_conic-gradient_01_965605834"
			width="500"
			height="370">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>One of the quirkier aspects of Flash is its lack of a &#8216;conic&#8217; gradient fill.  The conic gradient has been a mainstay of drawing apps like CorelDraw and Photoshop (where it&#8217;s called an &#8220;Angle Gradient&#8221;) for ages but Flash still hasn&#8217;t implemented this basic feature.  Go ahead and check&#8230; it&#8217;s not there.</p>
<p><em><strong>NOTE:</strong> This tutorial uses some of the code and concepts from my previous <a title="Creating a Gradient with Flash ActionScript" href="http://www.pixelwit.com/blog/2008/05/color-fading-array/">Color Gradient</a> and <a title="Drawing a Circle with Flash ActionScript" href="http://www.pixelwit.com/blog/2007/06/basic-circle-drawing-actionscript/">Circle Drawing</a> tutorials so I highly recommend checking them out for a more in-depth explanation of the following code</em><a href="http://www.pixelwit.com/blog/2008/09/flash-scripted-conic-angle-gradient/#more-654" title="Read more">...</a><p><a href="http://www.pixelwit.com/blog/2008/09/flash-scripted-conic-angle-gradient/#more-654" title="''Flash Scripted Conic Angle Gradient'' continues">Continue reading "Flash Scripted Conic Angle Gradient"</a>.</p><hr />
<p><small>© Pixelwit for <a href="http://www.pixelwit.com/blog">PiXELWiT</a>, 2008. |
<a href="http://www.pixelwit.com/blog/2008/09/flash-scripted-conic-angle-gradient/">Permalink</a> |
<a href="http://www.pixelwit.com/blog/2008/09/flash-scripted-conic-angle-gradient/#comments">5 comments</a> |
Add to
<a href='http://del.icio.us/post?url=http://www.pixelwit.com/blog/2008/09/flash-scripted-conic-angle-gradient/&title=Flash Scripted Conic Angle Gradient'>del.icio.us</a>
<br/>
Post tags: <a href="http://www.pixelwit.com/blog/tag/actionscript/" rel="tag">ActionScript</a>, <a href="http://www.pixelwit.com/blog/tag/code/" rel="tag">Code</a>, <a href="http://www.pixelwit.com/blog/tag/color/" rel="tag">Color</a>, <a href="http://www.pixelwit.com/blog/tag/draw/" rel="tag">Draw</a>, <a href="http://www.pixelwit.com/blog/tag/swfs/" rel="tag">SWFs</a>, <a href="http://www.pixelwit.com/blog/tag/tutorial/" rel="tag">Tutorial</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.pixelwit.com/blog/2008/09/flash-scripted-conic-angle-gradient/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hexadecimal Color Fading Array</title>
		<link>http://www.pixelwit.com/blog/2008/05/color-fading-array/</link>
		<comments>http://www.pixelwit.com/blog/2008/05/color-fading-array/#comments</comments>
		<pubDate>Wed, 21 May 2008 09:45:55 +0000</pubDate>
		<dc:creator>Pixelwit</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[Draw]]></category>
		<category><![CDATA[SWFs]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.pixelwit.com/blog/?p=273</guid>
		<description><![CDATA[Detailed Flash ActionScript tutorial explaining how to fade between multiple colors and store each individual color of the gradient in an array.]]></description>
			<content:encoded><![CDATA[
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_fade-hexes_688453048"
			class="flashmovie"
			width="500"
			height="400">
	<param name="movie" value="http://www.pixelwit.com/blog/wp-content/uploads/2008/05/fade-hexes.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.pixelwit.com/blog/wp-content/uploads/2008/05/fade-hexes.swf"
			name="fm_fade-hexes_688453048"
			width="500"
			height="400">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>A while ago I wrote a <a title="How to Fade Between 2 Colors" href="http://www.pixelwit.com/blog/2007/05/hexadecimal-color-fading/">Hexadecimal Color Fading Tutorial</a> explaining how to select a single color at any point on a gradient between two specified colors.  In that tutorial there was a function which efficiently broke each of the 2 specified colors into their Red, Green and Blue components and then calculated a single new color at a specified point between them.</p>
<p>Here&#8217;s what the code looks like:<a href="http://www.pixelwit.com/blog/2008/05/color-fading-array/#more-273" title="Read more">...</a><p><a href="http://www.pixelwit.com/blog/2008/05/color-fading-array/#more-273" title="''Hexadecimal Color Fading Array'' continues">Continue reading "Hexadecimal Color Fading Array"</a>.</p><hr />
<p><small>© Pixelwit for <a href="http://www.pixelwit.com/blog">PiXELWiT</a>, 2008. |
<a href="http://www.pixelwit.com/blog/2008/05/color-fading-array/">Permalink</a> |
<a href="http://www.pixelwit.com/blog/2008/05/color-fading-array/#comments">8 comments</a> |
Add to
<a href='http://del.icio.us/post?url=http://www.pixelwit.com/blog/2008/05/color-fading-array/&title=Hexadecimal Color Fading Array'>del.icio.us</a>
<br/>
Post tags: <a href="http://www.pixelwit.com/blog/tag/actionscript/" rel="tag">ActionScript</a>, <a href="http://www.pixelwit.com/blog/tag/code/" rel="tag">Code</a>, <a href="http://www.pixelwit.com/blog/tag/color/" rel="tag">Color</a>, <a href="http://www.pixelwit.com/blog/tag/draw/" rel="tag">Draw</a>, <a href="http://www.pixelwit.com/blog/tag/swfs/" rel="tag">SWFs</a>, <a href="http://www.pixelwit.com/blog/tag/tutorial/" rel="tag">Tutorial</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.pixelwit.com/blog/2008/05/color-fading-array/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Random Candy Colors</title>
		<link>http://www.pixelwit.com/blog/2007/05/random-candy-colors/</link>
		<comments>http://www.pixelwit.com/blog/2007/05/random-candy-colors/#comments</comments>
		<pubDate>Wed, 30 May 2007 17:24:59 +0000</pubDate>
		<dc:creator>Pixelwit</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[SWFs]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.pixelwit.com/blog/2007/05/30/random-candy-colors/</guid>
		<description><![CDATA[A novel Flash ActionScript function which generates a series of similar yet slightly different colors resulting in a brightly colored banded gradient.]]></description>
			<content:encoded><![CDATA[<p>If you saw my recent &#8220;<a title="Brightly Colored Flash Art" href="http://www.pixelwit.com/blog/2007/05/candy-cosmos/">Candy Cosmos</a>&#8221; post, you may have noticed that the randomly generated colors tend to be rather &#8220;vibrant&#8221;.</p>
<p><img src='http://www.pixelwit.com/blog/wp-content/uploads/2007/05/rainbbowgradient.jpg' title='Brightly Colored Banded Gradient' alt='rainbbowgradient.jpg' /></p>
<p>Pure red, green, blue, cyan, magenta and yellow colors appear frequently, while pure black and white colors occur occasionally, and colors near 50% gray tend to be the least common.   The bright candy colors are a side effect caused by<a href="http://www.pixelwit.com/blog/2007/05/random-candy-colors/#more-57" title="Read more">...</a><p><a href="http://www.pixelwit.com/blog/2007/05/random-candy-colors/#more-57" title="''Random Candy Colors'' continues">Continue reading "Random Candy Colors"</a>.</p><hr />
<p><small>© Pixelwit for <a href="http://www.pixelwit.com/blog">PiXELWiT</a>, 2007. |
<a href="http://www.pixelwit.com/blog/2007/05/random-candy-colors/">Permalink</a> |
<a href="http://www.pixelwit.com/blog/2007/05/random-candy-colors/#comments">4 comments</a> |
Add to
<a href='http://del.icio.us/post?url=http://www.pixelwit.com/blog/2007/05/random-candy-colors/&title=Random Candy Colors'>del.icio.us</a>
<br/>
Post tags: <a href="http://www.pixelwit.com/blog/tag/actionscript/" rel="tag">ActionScript</a>, <a href="http://www.pixelwit.com/blog/tag/color/" rel="tag">Color</a>, <a href="http://www.pixelwit.com/blog/tag/swfs/" rel="tag">SWFs</a>, <a href="http://www.pixelwit.com/blog/tag/tutorial/" rel="tag">Tutorial</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.pixelwit.com/blog/2007/05/random-candy-colors/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hexadecimal Color Fading</title>
		<link>http://www.pixelwit.com/blog/2007/05/hexadecimal-color-fading/</link>
		<comments>http://www.pixelwit.com/blog/2007/05/hexadecimal-color-fading/#comments</comments>
		<pubDate>Mon, 14 May 2007 18:33:44 +0000</pubDate>
		<dc:creator>Pixelwit</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[SWFs]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.pixelwit.com/blog/2007/05/14/hexadecimal-color-fading/</guid>
		<description><![CDATA[A great little ActionScript function to efficiently pick any color on the spectrum between two other hexadecimal colors.  For example: "var purple = fadeHex(0xFF0000, 0x0000FF, .5);".]]></description>
			<content:encoded><![CDATA[<p>A while ago, I wrote a <a title="Pixelwit Color Fading Tutorial" href="http://www.pixelwit.com/temp/colorfadetutorial/home.html">Color Fading tutorial</a> for <a title="Tutorial at ActionScript.org" href="http://www.actionscript.org/resources/articles/162/1/Color-fade/Page1.html"> ActionScript.org</a> which provided nearly all the functions you&#8217;d ever want for fading colors.  Did you notice that I said &#8220;nearly&#8221;?  Well, today I&#8217;ve added yet another weapon to my color-fading code arsenal called &#8220;fadeHex&#8221;. The name probably won&#8217;t put fear in the hearts of fellow code warriors but it&#8217;s a powerful tool none the less.  In essence, it lets you specify two colors, then creates a color gradient from the first color to the second and lets you choose a color at any point on that gradient.<a href="http://www.pixelwit.com/blog/2007/05/hexadecimal-color-fading/#more-45" title="Read more">...</a><p><a href="http://www.pixelwit.com/blog/2007/05/hexadecimal-color-fading/#more-45" title="''Hexadecimal Color Fading'' continues">Continue reading "Hexadecimal Color Fading"</a>.</p><hr />
<p><small>© Pixelwit for <a href="http://www.pixelwit.com/blog">PiXELWiT</a>, 2007. |
<a href="http://www.pixelwit.com/blog/2007/05/hexadecimal-color-fading/">Permalink</a> |
<a href="http://www.pixelwit.com/blog/2007/05/hexadecimal-color-fading/#comments">11 comments</a> |
Add to
<a href='http://del.icio.us/post?url=http://www.pixelwit.com/blog/2007/05/hexadecimal-color-fading/&title=Hexadecimal Color Fading'>del.icio.us</a>
<br/>
Post tags: <a href="http://www.pixelwit.com/blog/tag/actionscript/" rel="tag">ActionScript</a>, <a href="http://www.pixelwit.com/blog/tag/color/" rel="tag">Color</a>, <a href="http://www.pixelwit.com/blog/tag/swfs/" rel="tag">SWFs</a>, <a href="http://www.pixelwit.com/blog/tag/tutorial/" rel="tag">Tutorial</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.pixelwit.com/blog/2007/05/hexadecimal-color-fading/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

