<?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"
	>
<channel>
	<title>Comments on: Multi Gradient</title>
	<atom:link href="http://labs.hellokeita.com/2008/01/24/multi-gradient/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.hellokeita.com/2008/01/24/multi-gradient/</link>
	<description>Yet another labs blog</description>
	<pubDate>Fri, 21 Nov 2008 18:15:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Joaqo</title>
		<link>http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-1036</link>
		<dc:creator>Joaqo</dc:creator>
		<pubDate>Wed, 20 Aug 2008 05:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-1036</guid>
		<description>... The code shows incompletely and incorrectly, so here is a link to the text file with the code:

http://joaqo182.googlepages.com/MultiGradient.txt

And here is the compiled swf:
http://joaqo182.googlepages.com/MultiGradient.swf</description>
		<content:encoded><![CDATA[<p>&#8230; The code shows incompletely and incorrectly, so here is a link to the text file with the code:</p>
<p><a href="http://joaqo182.googlepages.com/MultiGradient.txt" rel="nofollow">http://joaqo182.googlepages.com/MultiGradient.txt</a></p>
<p>And here is the compiled swf:<br />
<a href="http://joaqo182.googlepages.com/MultiGradient.swf" rel="nofollow">http://joaqo182.googlepages.com/MultiGradient.swf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joaqo</title>
		<link>http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-1035</link>
		<dc:creator>Joaqo</dc:creator>
		<pubDate>Wed, 20 Aug 2008 05:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-1035</guid>
		<description>&lt;code&gt;
var bData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);
////////glitch&#62;
var wData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);
////////&#62; 16;
	color1_g = (color1&#38;0x00ff00) &#62;&#62; 8;
	color1_b = (color1&#38;0x0000ff);
	color2_r = (color2&#38;0xff0000) &#62;&#62; 16;
	color2_g = (color2&#38;0x00ff00) &#62;&#62; 8;
	color2_b = (color2&#38;0x0000ff);
	color3_r = (color3&#38;0xff0000) &#62;&#62; 16;
	color3_g = (color3&#38;0x00ff00) &#62;&#62; 8;
	color3_b = (color3&#38;0x0000ff);
	color4_r = (color4&#38;0xff0000) &#62;&#62; 16;
	color4_g = (color4&#38;0x00ff00) &#62;&#62; 8;
	color4_b = (color4&#38;0x0000ff);
	for (i = 0; i 
			color = rcolor 
var wbmp = new Bitmap(wData);
wbmp.x = stage.stageWidth/2
addChild(wbmp)
////////</description>
		<content:encoded><![CDATA[<p><code><br />
var bData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);<br />
////////glitch&gt;<br />
var wData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);<br />
////////&gt; 16;<br />
	color1_g = (color1&amp;0x00ff00) &gt;&gt; 8;<br />
	color1_b = (color1&amp;0x0000ff);<br />
	color2_r = (color2&amp;0xff0000) &gt;&gt; 16;<br />
	color2_g = (color2&amp;0x00ff00) &gt;&gt; 8;<br />
	color2_b = (color2&amp;0x0000ff);<br />
	color3_r = (color3&amp;0xff0000) &gt;&gt; 16;<br />
	color3_g = (color3&amp;0x00ff00) &gt;&gt; 8;<br />
	color3_b = (color3&amp;0x0000ff);<br />
	color4_r = (color4&amp;0xff0000) &gt;&gt; 16;<br />
	color4_g = (color4&amp;0x00ff00) &gt;&gt; 8;<br />
	color4_b = (color4&amp;0x0000ff);<br />
	for (i = 0; i<br />
			color = rcolor<br />
var wbmp = new Bitmap(wData);<br />
wbmp.x = stage.stageWidth/2<br />
addChild(wbmp)<br />
////////</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joaqo</title>
		<link>http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-1034</link>
		<dc:creator>Joaqo</dc:creator>
		<pubDate>Wed, 20 Aug 2008 05:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-1034</guid>
		<description>Here is a much simpler way to do it (*simpler* referring to the amount of code).
It also includes an interesting glitch that I found (OMG, evil rgb triangles aligned in a sierpinsky-triangle-like way!) , which will be displayed at the right of the gradient. (code involving this glitch will be included between comment lines)
Add this to your main timeline:

var bData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);
////////glitch&#62;
var wData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);
////////&#62; 16;
	color1_g = (color1&#38;0x00ff00) &#62;&#62; 8;
	color1_b = (color1&#38;0x0000ff);
	color2_r = (color2&#38;0xff0000) &#62;&#62; 16;
	color2_g = (color2&#38;0x00ff00) &#62;&#62; 8;
	color2_b = (color2&#38;0x0000ff);
	color3_r = (color3&#38;0xff0000) &#62;&#62; 16;
	color3_g = (color3&#38;0x00ff00) &#62;&#62; 8;
	color3_b = (color3&#38;0x0000ff);
	color4_r = (color4&#38;0xff0000) &#62;&#62; 16;
	color4_g = (color4&#38;0x00ff00) &#62;&#62; 8;
	color4_b = (color4&#38;0x0000ff);
	for (i = 0; i 
			color = rcolor 
var wbmp = new Bitmap(wData);
wbmp.x = stage.stageWidth/2
addChild(wbmp)
////////</description>
		<content:encoded><![CDATA[<p>Here is a much simpler way to do it (*simpler* referring to the amount of code).<br />
It also includes an interesting glitch that I found (OMG, evil rgb triangles aligned in a sierpinsky-triangle-like way!) , which will be displayed at the right of the gradient. (code involving this glitch will be included between comment lines)<br />
Add this to your main timeline:</p>
<p>var bData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);<br />
////////glitch&gt;<br />
var wData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);<br />
////////&gt; 16;<br />
	color1_g = (color1&amp;0&#215;00ff00) &gt;&gt; 8;<br />
	color1_b = (color1&amp;0&#215;0000ff);<br />
	color2_r = (color2&amp;0xff0000) &gt;&gt; 16;<br />
	color2_g = (color2&amp;0&#215;00ff00) &gt;&gt; 8;<br />
	color2_b = (color2&amp;0&#215;0000ff);<br />
	color3_r = (color3&amp;0xff0000) &gt;&gt; 16;<br />
	color3_g = (color3&amp;0&#215;00ff00) &gt;&gt; 8;<br />
	color3_b = (color3&amp;0&#215;0000ff);<br />
	color4_r = (color4&amp;0xff0000) &gt;&gt; 16;<br />
	color4_g = (color4&amp;0&#215;00ff00) &gt;&gt; 8;<br />
	color4_b = (color4&amp;0&#215;0000ff);<br />
	for (i = 0; i<br />
			color = rcolor<br />
var wbmp = new Bitmap(wData);<br />
wbmp.x = stage.stageWidth/2<br />
addChild(wbmp)<br />
////////</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liam Walsh</title>
		<link>http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-1028</link>
		<dc:creator>Liam Walsh</dc:creator>
		<pubDate>Sun, 20 Jul 2008 00:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-1028</guid>
		<description>http://www.motiondraw.com/md/as_samples/t/gradientTween/gradientTweenEditor.html

Here's an example of a similar (but cruder) implementation of the algorithm with the source code.  (Not my work or my source code, but I have made it work and it's pretty fast.)</description>
		<content:encoded><![CDATA[<p><a href="http://www.motiondraw.com/md/as_samples/t/gradientTween/gradientTweenEditor.html" rel="nofollow">http://www.motiondraw.com/md/as_samples/t/gradientTween/gradientTweenEditor.html</a></p>
<p>Here&#8217;s an example of a similar (but cruder) implementation of the algorithm with the source code.  (Not my work or my source code, but I have made it work and it&#8217;s pretty fast.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frank</title>
		<link>http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-991</link>
		<dc:creator>frank</dc:creator>
		<pubDate>Fri, 02 May 2008 11:16:09 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-991</guid>
		<description>hellokeita,

thanks for sharing your knowledge with us. I used your GradientBitmapData.as andPointData.as to rebuild your Multi Gradient Example. It’s working, but it’s really slow. In my setup it takes much longer to fill a 400x400 bitmap.

Maybe you can tell me how to speed the whole thing up?

I instantiate GradientBitmapData like this:
var gradientBitmapData:GradientBitmapData = new GradientBitmapData(400, 400,true,0xff00ffff);
addChild(new Bitmap(gradientBitmapData)); 

I add a points like this:
var topleft:PointColor = new PointColor(0, 0, 0xffff00ff);
gradientBitmapData.addSpot(topleft);


Thanks
Frank</description>
		<content:encoded><![CDATA[<p>hellokeita,</p>
<p>thanks for sharing your knowledge with us. I used your GradientBitmapData.as andPointData.as to rebuild your Multi Gradient Example. It’s working, but it’s really slow. In my setup it takes much longer to fill a 400&#215;400 bitmap.</p>
<p>Maybe you can tell me how to speed the whole thing up?</p>
<p>I instantiate GradientBitmapData like this:<br />
var gradientBitmapData:GradientBitmapData = new GradientBitmapData(400, 400,true,0xff00ffff);<br />
addChild(new Bitmap(gradientBitmapData)); </p>
<p>I add a points like this:<br />
var topleft:PointColor = new PointColor(0, 0, 0xffff00ff);<br />
gradientBitmapData.addSpot(topleft);</p>
<p>Thanks<br />
Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zh.</title>
		<link>http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-973</link>
		<dc:creator>zh.</dc:creator>
		<pubDate>Mon, 11 Feb 2008 14:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-973</guid>
		<description>Great!!!
Maybe you'll give us some source?</description>
		<content:encoded><![CDATA[<p>Great!!!<br />
Maybe you&#8217;ll give us some source?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: C4RL05</title>
		<link>http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-970</link>
		<dc:creator>C4RL05</dc:creator>
		<pubDate>Tue, 05 Feb 2008 15:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2008/01/24/multi-gradient/#comment-970</guid>
		<description>Love it.</description>
		<content:encoded><![CDATA[<p>Love it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
