<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pixelero</title>
	<atom:link href="http://pixelero.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pixelero.wordpress.com</link>
	<description>Just another Flash/actionscript/whatever weblog</description>
	<lastBuildDate>Sun, 05 Jul 2009 20:26:31 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='pixelero.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/4e190f6b74117d93b5e6ee6b0a5f426b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Pixelero</title>
		<link>http://pixelero.wordpress.com</link>
	</image>
			<item>
		<title>BelousovZhabotinsky, with perspective</title>
		<link>http://pixelero.wordpress.com/2009/07/05/belousovzhabotinsky-with-perspective/</link>
		<comments>http://pixelero.wordpress.com/2009/07/05/belousovzhabotinsky-with-perspective/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 20:21:10 +0000</pubDate>
		<dc:creator>pixelero</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[cellular automaton]]></category>
		<category><![CDATA[parallax]]></category>
		<category><![CDATA[perspective]]></category>

		<guid isPermaLink="false">http://pixelero.wordpress.com/?p=503</guid>
		<description><![CDATA[I just couldn&#8217;t resist the temptation of checking the BZ-cellular automaton of my previous post with some perspective-effect.
Demo (keyboard: esc for fullScreen, delete for a new generation)

btw &#8230; if pattern appears too dense, make sure you&#8217;ve got the latest (FP 10.0r22) version installed.
I&#8217;ve already earlier demoed this principle, but I didn&#8217;t publish the code. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=503&subd=pixelero&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I just couldn&#8217;t resist the temptation of checking the BZ-cellular automaton of my <a href="http://pixelero.wordpress.com/2009/07/02/belousov-zhabotinsky-cellular-automata/">previous post</a> with some perspective-effect.</p>
<p><a href="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/BZinPerspective.html">Demo (keyboard: esc for fullScreen, delete for a new generation)</a></p>
<p><a href="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/BZinPerspective.html"><img src="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/Samples/ZBCAperspective.jpg" border="0" alt="" /></a></p>
<p>btw &#8230; if pattern appears too dense, make sure you&#8217;ve got the latest (FP 10.0r22) version installed.</p>
<p>I&#8217;ve already earlier <a href="http://www.flickr.com/photos/pixelero/3368058327/">demoed this principle</a>, but I didn&#8217;t publish the code. The whole thing is done by first applying a perspective tiling, with graphics.drawTriangles, as in <a href="http://pixelero.wordpress.com/2008/09/22/flash-10-part-5-of-testing-drawtriangles-drawing-a-perspective-tiling/">one of my earlier posts</a> &#8211; and then adding the parallax effect by counting a displacement &#8211; a pixels position is raised by its color value &#8211; with BitmapData.set/getVector: then image is scanned through a vertical column by column. Here&#8217;s some essential part from the <a href="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/BZinPerspective.as">code</a>: found in <em>public function extrudeBitmapData</em></p>
<pre>for (var column:Rectangle= new Rectangle(bmd.width,0,1,bmd.height); (column.x-=1)&gt;-1 ; ) {

	levels = new Vector.&lt;int&gt;(bmd.height, true);

	pixels = bmd.getVector(column);

	heights = (heightMap) ? heightMap.getVector(column) : pixels ;

	//	first loop marks the displacements for each pixel
	//	'version 0.0' sampled from the blur-channel
	for (i = 0; ++i != bmd.height; ) {
		levels[i- ((heights[i]&amp;0xFF) * i &gt;&gt;10) ] = i; // &gt;&gt;10 controls the height
	}

	//	displace the column
	for (iz = -1, i = 0; ++i != bmd.height;) {
		pixels[i] = (levels[i] &gt; iz) ? pxl = pixels[iz = levels[i]] : pxl ;
	}

	//	rewrite on the image
	bmd.setVector(column, pixels);

}</pre>
<p>So finally here&#8217;s that messy <a href="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/BZinPerspective.as">source</a> with too few comments !</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pixelero.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pixelero.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pixelero.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pixelero.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pixelero.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pixelero.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pixelero.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pixelero.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pixelero.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pixelero.wordpress.com/503/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=503&subd=pixelero&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pixelero.wordpress.com/2009/07/05/belousovzhabotinsky-with-perspective/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c3f5b99fb3777e7b8595238cb2692a1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pixelero</media:title>
		</media:content>

		<media:content url="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/Samples/ZBCAperspective.jpg" medium="image" />
	</item>
		<item>
		<title>Belousov-Zhabotinsky -cellular automata</title>
		<link>http://pixelero.wordpress.com/2009/07/02/belousov-zhabotinsky-cellular-automata/</link>
		<comments>http://pixelero.wordpress.com/2009/07/02/belousov-zhabotinsky-cellular-automata/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 10:32:13 +0000</pubDate>
		<dc:creator>pixelero</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Belousov-Zhabotinsky]]></category>
		<category><![CDATA[cellular automata]]></category>

		<guid isPermaLink="false">http://pixelero.wordpress.com/?p=488</guid>
		<description><![CDATA[
This Demo also allows you to save the animation as a seamless gif-image. For the best results, please wait for some time for the automaton to fully develop and don&#8217;t worry if preparing data for saving might take some time. Lots of values don&#8217;t give the beautiful spirals at all, so it might take a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=488&subd=pixelero&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/Main.html"><img src="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/Samples/BelousovZhabotinskySample.gif" border="0" alt="" /></a></p>
<p><a href="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/Main.html">This Demo</a> also allows you to save the animation as a seamless gif-image. For the best results, please wait for some time for the automaton to fully develop and don&#8217;t worry if preparing data for saving might take some time. Lots of values don&#8217;t give the beautiful spirals at all, so it might take a couple of tryes before getting somewhere. I noticed the values k1=2, k2=3&#8230;8, g~250/k2, develop for the best results. To start over again just press the button to regenerate if you end up having an empty canvas.<br />
Anyway in my personal opinion I find BZ one of the most artistic of all cellular automata &#8211; and I wanted to check it out with actionscript, the code uses fp10 Vectors and bitmapdata.setVector, with which I&#8217;ve had already earlier some nice results when it comes to performance speed.</p>
<p><a href="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/Main_fla.zip">Main_fla.zip</a></p>
<p><a href="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/BelousovZhabotinskyCA.as">BelousovZhabotinskyCA.as</a></p>
<p><a href="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/BelousovZhabotinskyDemo.as">BelousovZhabotinskyDemo.as</a></p>
<p>For saving the gif, I used FileReference.save() of FlashPlayer 10 with very useful <a title="as3gif" href="http://code.google.com/p/as3gif/" target="_blank">as3gif </a>by <a href="http://www.bytearray.org">Thibault Imbert</a></p>
<p>You&#8217;ll find some more info on the BZ-automaton like for instance <a href="http://www.hermetic.ch/pca/bz.htm" target="five automata">here</a> or <a href="http://demonstrations.wolfram.com/IdealizedBelousovZhabotinskyReaction/">here</a></p>
<p><img src="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/Samples/BelousovZhabotinskySample7.gif" alt="" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pixelero.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pixelero.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pixelero.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pixelero.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pixelero.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pixelero.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pixelero.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pixelero.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pixelero.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pixelero.wordpress.com/488/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=488&subd=pixelero&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pixelero.wordpress.com/2009/07/02/belousov-zhabotinsky-cellular-automata/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c3f5b99fb3777e7b8595238cb2692a1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pixelero</media:title>
		</media:content>

		<media:content url="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/Samples/BelousovZhabotinskySample.gif" medium="image" />

		<media:content url="http://www.petrileskinen.fi/Actionscript/BelousovZhabotinsky/Samples/BelousovZhabotinskySample7.gif" medium="image" />
	</item>
		<item>
		<title>LinkedGrid</title>
		<link>http://pixelero.wordpress.com/2009/06/11/linkedgrid/</link>
		<comments>http://pixelero.wordpress.com/2009/06/11/linkedgrid/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 10:16:53 +0000</pubDate>
		<dc:creator>pixelero</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[CS4]]></category>
		<category><![CDATA[drawTriangles]]></category>
		<category><![CDATA[Flash Player 10]]></category>

		<guid isPermaLink="false">http://pixelero.wordpress.com/?p=459</guid>
		<description><![CDATA[Many of my demos here are based on the same principles: create a rectangular grid and animate bending it in some groovy way. Flash Player 10&#8217;s graphics.drawTriangles has been quite a perfect tool for doing that.
Usually I&#8217;ve handled the vertices and triangles &#8211; or indices &#8211; by some for-loop, like this example initialized the triangles [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=459&subd=pixelero&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Many of my demos here are based on the same principles: create a rectangular grid and animate bending it in some groovy way. Flash Player 10&#8217;s graphics.drawTriangles has been quite a perfect tool for doing that.<br />
Usually I&#8217;ve handled the vertices and triangles &#8211; or indices &#8211; by some for-loop, like this example initialized the triangles for a mesh of size n*m:</p>
<pre><span style="font-size:120%;color:#0000ff;">for (ii=i=0 ; i!=n-1; i++) {
	for (j=0 ; j!=m-1; j++) {
		indices.push(
			ii,ii+m+1,ii+1,
			ii+m,ii+m+1,ii++);
	}
	ii++;
}</span></pre>
<p>Ok, even if it&#8217;s an old code of your own, anyone might get confused with all these i,j,ii and ++&#8217;s &#8211; specially seeing it after some months. Well, this time went a bit further and wanted to try manipulating items on the grid with some more advanced way: I guess anyone interested in optimizing as-code, has came across <a href="http://blog.joa-ebert.com">Joa Ebert</a>&#8217;s great results of using <a href="http://wiki.joa-ebert.com/index.php/LinkedList">LinkedLists</a>.</p>
<p>Ok, I ended up taking similar approach to dealing with the grid. In this version every node has two links to the nodes on the right and below it:</p>
<p><img src="http://www.petrileskinen.fi/Actionscript/LinkedGrid/LinkedGrid.gif" alt="LinkedGrid - principle" /></p>
<p>Now the code iterating through the grid will look like this:</p>
<pre><code><span style="font-size:120%;color:#0000ff;">
var itemX:GridItem = firstItem, itemY:GridItem = itemX;
do {
	do doSomething(itemY) while (itemY = itemY.itemBelow)
} while (itemY = itemX = itemX.itemRight)</span>
</code></pre>
<p>or simply by a single public function:</p>
<pre><code><span style="font-size:120%;color:#0000ff;">
myLinkedGrid.forEach(doSomething);</span>
</code></pre>
<p>When dealing with a grid, you every so often need to iterate the areas -like for instance the triangles &#8211; between nodes &#8211; like in the for-for -example above &#8211; now that&#8217;s just:</p>
<pre><code><span style="font-size:120%;color:#0000ff;">myLinkedGrid.forArea(doSomethingElseEvenMoreComplicated);</span>
</code></pre>
<p>And the best part of course are the results of running a test code 2000 times:</p>
<p>*    linked list : 5722 ms<br />
*    for-loops accessing vector[ ][ ]  : 9340 ms</p>
<p>Results of different methods:</p>
<p>- 5810 ms : Iteration by public function  Grid.forEach(doSomething)</p>
<p>- 5705 ms :  Using public static function  Grid.forEach( GridItem.doSomething) //  (for being &#8217;static&#8217; the results were varying a lot, at worse ~7500)</p>
<p>- 4807 ms :  Using an inline function  Grid.forEach(function (item: ){&#8230;</p>
<p>- 3306 ms :  Using do-while loops with inline code</p>
<p>Ok, finally, here&#8217;s a couple of demos using these methods, some weird physics simulations , don&#8217;t know if they&#8217;re cloth, water, landscape or architecture &#8211; but who cares, as long as it&#8217;s cool :</p>
<p><a href="http://www.petrileskinen.fi/Actionscript/SolidGold/SolidGold.swf" target="Solid"><img src="http://www.petrileskinen.fi/Actionscript/SolidGold/SolidGold.jpg" border="0" alt="" /></a></p>
<p><a href="http://www.petrileskinen.fi/Actionscript/LinkedGrid/LinkedGrid.swf"><img src="http://www.petrileskinen.fi/Actionscript/LinkedGrid/LinkedGrid01.jpg" border="0" alt="" /><br />
<img src="http://www.petrileskinen.fi/Actionscript/LinkedGrid/LinkedGrid02.jpg" border="0" alt="" /></a><br />
&#8230; press &#8217;space&#8217; for a different looking grid !</p>
<p>with sources:<br />
<a href="http://www.petrileskinen.fi/Actionscript/LinkedGrid/GridMain.as">Main</a> &#8211; of later demo<br />
<a href="http://www.petrileskinen.fi/Actionscript/LinkedGrid/LinkedGrid.as">LinkedGrid.as</a></p>
<p><a href="http://www.petrileskinen.fi/Actionscript/LinkedGrid/GridItem.as">GridItem.as</a><br />
<a href="http://www.petrileskinen.fi/Actionscript/LinkedGrid/GridTriangle.as">GridTriangle.as</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pixelero.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pixelero.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pixelero.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pixelero.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pixelero.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pixelero.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pixelero.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pixelero.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pixelero.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pixelero.wordpress.com/459/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=459&subd=pixelero&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pixelero.wordpress.com/2009/06/11/linkedgrid/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c3f5b99fb3777e7b8595238cb2692a1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pixelero</media:title>
		</media:content>

		<media:content url="http://www.petrileskinen.fi/Actionscript/LinkedGrid/LinkedGrid.gif" medium="image">
			<media:title type="html">LinkedGrid - principle</media:title>
		</media:content>

		<media:content url="http://www.petrileskinen.fi/Actionscript/SolidGold/SolidGold.jpg" medium="image" />

		<media:content url="http://www.petrileskinen.fi/Actionscript/LinkedGrid/LinkedGrid01.jpg" medium="image" />

		<media:content url="http://www.petrileskinen.fi/Actionscript/LinkedGrid/LinkedGrid02.jpg" medium="image" />
	</item>
		<item>
		<title>FP10 graphics.drawTriangles: BurningSphere</title>
		<link>http://pixelero.wordpress.com/2009/05/31/fp10-graphics-drawtriangles-burningsphere/</link>
		<comments>http://pixelero.wordpress.com/2009/05/31/fp10-graphics-drawtriangles-burningsphere/#comments</comments>
		<pubDate>Sun, 31 May 2009 19:21:52 +0000</pubDate>
		<dc:creator>pixelero</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[drawTriangles]]></category>
		<category><![CDATA[FP10]]></category>

		<guid isPermaLink="false">http://pixelero.wordpress.com/?p=445</guid>
		<description><![CDATA[Hi! Ok, it&#8217;s been some time since my last post. Well, anyway, here&#8217;s something I&#8217;ve been writing every now and then during the past couple of weeks &#8211; maybe a line or two an evening:

Keyboard: Press &#8217;space&#8217; to see the triangle mesh, or just press &#8216;Delele&#8217; if you get tired of the whole thing !
The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=445&subd=pixelero&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hi! Ok, it&#8217;s been some time since my last post. Well, anyway, here&#8217;s something I&#8217;ve been writing every now and then during the past couple of weeks &#8211; maybe a line or two an evening:</p>
<p><a href="http://www.petrileskinen.fi/Actionscript/BurningSphere/BSphere.swf" target="burning"><img src="http://www.petrileskinen.fi/Actionscript/BurningSphere/BurningSphere.jpg" border="0" alt="" width="400" height="292" /></a></p>
<p>Keyboard: Press &#8217;space&#8217; to see the triangle mesh, or just press &#8216;Delele&#8217; if you get tired of the whole thing !</p>
<p>The -maybe messy- sources (<a href="http://www.petrileskinen.fi/Actionscript/BurningSphere/src/BurningSphere.as" target="asSorsaa">main</a>, <a href="http://www.petrileskinen.fi/Actionscript/BurningSphere/src/MeshConnection.as" target="asSorsaa">MeshConnection</a>, <a href="http://www.petrileskinen.fi/Actionscript/BurningSphere/src/MeshTriangle.as" target="asSorsaa">MeshTriangle</a>, <a href="http://www.petrileskinen.fi/Actionscript/BurningSphere/src/MeshParticle.as" target="asSorsaa">MeshParticle</a>) include solving all kinds of funny stuff, like subdividing from an icosahedron to a sphere, animated &#8216;mass and spring&#8217;-like system, finding the correct one out of 5000 triangles, etc.</p>
<p>*** Edit, As you may read from the comments, the first posting &#8211; <a href="http://www.petrileskinen.fi/Actionscript/BurningSphere/BurningSphere.swf">old version</a> &#8211; had a &#8217;scale by 20&#8242; bug fixed in newer version of FP, If you now see the sphere appearing in a very small scale at the center of stage, update your flash player ***</p>
<p>*** Edit, same code with small variations created <a href="http://www.petrileskinen.fi/Actionscript/BurningSphere/LaundrySphere.swf">this</a> and <a href="http://www.petrileskinen.fi/Actionscript/BurningSphere/GeometricSphere.swf">this [click if it gets too boring !]</a> ***</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pixelero.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pixelero.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pixelero.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pixelero.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pixelero.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pixelero.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pixelero.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pixelero.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pixelero.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pixelero.wordpress.com/445/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=445&subd=pixelero&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pixelero.wordpress.com/2009/05/31/fp10-graphics-drawtriangles-burningsphere/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c3f5b99fb3777e7b8595238cb2692a1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pixelero</media:title>
		</media:content>

		<media:content url="http://www.petrileskinen.fi/Actionscript/BurningSphere/BurningSphere.jpg" medium="image" />
	</item>
		<item>
		<title>Metaball²</title>
		<link>http://pixelero.wordpress.com/2009/03/20/metaball%c2%b2/</link>
		<comments>http://pixelero.wordpress.com/2009/03/20/metaball%c2%b2/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 20:23:04 +0000</pubDate>
		<dc:creator>pixelero</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[blob]]></category>
		<category><![CDATA[metaball]]></category>

		<guid isPermaLink="false">http://pixelero.wordpress.com/?p=441</guid>
		<description><![CDATA[Metaball² – the next level: a blob consisting of smaller blobs:


&#8230; Flash Player 10
&#8230; smaller blobs are particles in the energy field of the larger blobs, searching for the position where energy=1
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=441&subd=pixelero&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Metaball² – the next level: a blob consisting of smaller blobs:<br />
<a href="http://www.petrileskinen.fi/Actionscript/MetaBlobs/Metaball2.swf" target="demo"><br />
<img src="http://farm4.static.flickr.com/3419/3371233520_2aa7b828af.jpg" alt="blob" /></a><br />
&#8230; Flash Player 10</p>
<p>&#8230; smaller blobs are particles in the energy field of the larger blobs, searching for the position where energy=1</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pixelero.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pixelero.wordpress.com/441/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pixelero.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pixelero.wordpress.com/441/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pixelero.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pixelero.wordpress.com/441/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pixelero.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pixelero.wordpress.com/441/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pixelero.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pixelero.wordpress.com/441/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=441&subd=pixelero&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pixelero.wordpress.com/2009/03/20/metaball%c2%b2/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c3f5b99fb3777e7b8595238cb2692a1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pixelero</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3419/3371233520_2aa7b828af.jpg" medium="image">
			<media:title type="html">blob</media:title>
		</media:content>
	</item>
		<item>
		<title>Voronoi XYRGB</title>
		<link>http://pixelero.wordpress.com/2009/02/27/voronoi-xyrgb/</link>
		<comments>http://pixelero.wordpress.com/2009/02/27/voronoi-xyrgb/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 10:53:23 +0000</pubDate>
		<dc:creator>pixelero</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[image processing]]></category>
		<category><![CDATA[RGB]]></category>
		<category><![CDATA[voronoi]]></category>
		<category><![CDATA[xy]]></category>

		<guid isPermaLink="false">http://pixelero.wordpress.com/?p=417</guid>
		<description><![CDATA[It started with a idea of writing a posterizer &#8211; or in this case a &#8216;Obamizer&#8217;:

Main principle is to compare each color&#8217;s distance in rgb-space to some predefined colors &#8211; it&#8217;s like doing a voronoi diagram, but in color space, and things remain easy while dealing with only a few colors.
xy-voronoi :

I had already earlier [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=417&subd=pixelero&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It started with a idea of writing a posterizer &#8211; or in this case a &#8216;Obamizer&#8217;:<br />
<a title="Obamized by piXelero, on Flickr" href="http://www.flickr.com/photos/pixelero/3309229159/"><img src="http://farm4.static.flickr.com/3644/3309229159_8da9bc3034_m.jpg" alt="Obamized" width="173" height="240" /></a></p>
<p>Main principle is to compare each color&#8217;s distance in rgb-space to some predefined colors &#8211; it&#8217;s like doing a voronoi diagram, but in color space, and things remain easy while dealing with only a few colors.</p>
<p>xy-voronoi :<br />
<a title="Voronoi of XY  by piXelero, on Flickr" href="http://www.flickr.com/photos/pixelero/3313760818/"><img src="http://farm4.static.flickr.com/3598/3313760818_948dc8a46d_m.jpg" alt="Voronoi of XY " width="173" height="240" /></a></p>
<p>I had already earlier though of what if I extend the voronoi algorithm so it uses the x- and y-coordinates, but considers r-,g- and b-values as well, like a 5-dimensional distance  Δx²+Δy²+Δr²+Δg²+Δb²  ? Anyway,here&#8217;s some &#8211; in my opinion &#8211; quite interesting results I came up with, xyrgb-voronois with random points and a regular grid:</p>
<p><a title="Voronoi of XYRGB by piXelero, on Flickr" href="http://www.flickr.com/photos/pixelero/3313760826/"><img src="http://farm4.static.flickr.com/3589/3313760826_cd54c569c3_m.jpg" alt="Voronoi of XYRGB" width="173" height="240" /></a> <a title="Voronoi XYRGB on a regular grid by piXelero, on Flickr" href="http://www.flickr.com/photos/pixelero/3313760832/"><img src="http://farm4.static.flickr.com/3424/3313760832_87b2f347c9_m.jpg" alt="Voronoi XYRGB on a regular grid" width="173" height="240" /></a></p>
<p>Different weights for colors: d²=x²+y²+f(r²+g²+b²) with f= 4.0 and f=-0.25, the last one seems to seach nearby area for a very different color on each pixel, creating like some partial negative:<br />
<a title="XY4RGB voronoi by piXelero, on Flickr" href="http://www.flickr.com/photos/pixelero/3312946933/"><img src="http://farm4.static.flickr.com/3617/3312946933_af11ec2730_m.jpg" alt="XY4RGB voronoi" width="173" height="240" /></a> <a title="XY-0.25RGB voronoi by piXelero, on Flickr" href="http://www.flickr.com/photos/pixelero/3312977433/"><img src="http://farm4.static.flickr.com/3313/3312977433_ccff432814_m.jpg" alt="XY-0.25RGB voronoi" width="173" height="240" /></a></p>
<p><a href="http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&amp;loc=en_us&amp;extid=1760025">&#8216;Obamizer&#8217;</a> was written with Pixel Bender, other images with actionscript &#8211; I used a very brute-force code. Not like for instance Frank&#8217;s <a href="http://www.dasprinzip.com/prinzipiell/2008/12/17/voronoi-and-vectors/">voronoi processor</a>, mine is so far more like 1/15 fps !</p>
<p>&#8230; <a href="http://www.compuphase.com/cmetric.htm" target="color">an article</a> of colour metrics with a more scientific approach.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pixelero.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pixelero.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pixelero.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pixelero.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pixelero.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pixelero.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pixelero.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pixelero.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pixelero.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pixelero.wordpress.com/417/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=417&subd=pixelero&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pixelero.wordpress.com/2009/02/27/voronoi-xyrgb/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c3f5b99fb3777e7b8595238cb2692a1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pixelero</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3644/3309229159_8da9bc3034_m.jpg" medium="image">
			<media:title type="html">Obamized</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3598/3313760818_948dc8a46d_m.jpg" medium="image">
			<media:title type="html">Voronoi of XY </media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3589/3313760826_cd54c569c3_m.jpg" medium="image">
			<media:title type="html">Voronoi of XYRGB</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3424/3313760832_87b2f347c9_m.jpg" medium="image">
			<media:title type="html">Voronoi XYRGB on a regular grid</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3617/3312946933_af11ec2730_m.jpg" medium="image">
			<media:title type="html">XY4RGB voronoi</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3313/3312977433_ccff432814_m.jpg" medium="image">
			<media:title type="html">XY-0.25RGB voronoi</media:title>
		</media:content>
	</item>
		<item>
		<title>#tweetcoding</title>
		<link>http://pixelero.wordpress.com/2009/02/26/tweetcoding/</link>
		<comments>http://pixelero.wordpress.com/2009/02/26/tweetcoding/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 09:29:46 +0000</pubDate>
		<dc:creator>pixelero</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://pixelero.wordpress.com/?p=397</guid>
		<description><![CDATA[A blogpost about my entries for #tweetcoding – a nicely challenging competition organized by Grant Skinner. What can be done with an actionscript code of 140 characters &#8211; see link for further info.
My first approach was very similar to entries on 25 lines of actionscript competition, trying to chain stuff like in &#8216;addChild(new Bitmap(new BitmapData(w,h)))&#8217; &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=397&subd=pixelero&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A blogpost about my entries for <a href="http://tweetcoding.machine501.com/" target="tweets">#tweetcoding</a> – a nicely challenging competition organized by <a href="http://www.gskinner.com/blog/">Grant Skinner</a>. What can be done with an actionscript code of 140 characters &#8211; see link for further info.</p>
<p>My first approach was very similar to entries on <a href="http://www.25lines.com/">25 lines of actionscript</a> competition, trying to chain stuff like in &#8216;addChild(new Bitmap(new BitmapData(w,h)))&#8217; &#8211; now that only takes already 40 valuable chars. For a code 140 chars isn&#8217;t much, it&#8217;s in fact almost nothing &#8211; but I do like challenges like this. On the other hand, the <a href="http://gskinner.com/playpen/tweetcoding.html">&#8216;gimme code&#8217;</a> already had functions like g = <em>graphics</em>, s = <em>Math.sin</em> ls <em>=graphics.lineStyle</em> predefined, so using these might be a better approach. PerlinNoise or drawTriangles may not be the most suitable commands for use in this context, imho. My method was first to write a code snippet of about 200 chars, then start compressing it. This <a href="http://www.kelvinluck.com/assets/tweetcoding/">minifier</a> has also been very useful, thanks to <a href="http://www.kelvinluck.com/">Kelvin</a>.<br />
Now that I&#8217;ve five entries posted so far &#8211; and a lot ideas I&#8217;ve had to reject, because of the length&gt;140, I though I could do a small post having a closer look on what the codes on my latest posts actually do:</p>
<p><a href="http://www.petrileskinen.fi/Actionscript/Tweetcodes/TunnelOfStripes.html">TunnelOfStripes<br />
<img src="http://farm4.static.flickr.com/3460/3309061396_124824de72_m.jpg" alt="" /></a><br />
g.clear();<br />
a=mouseX;<span style="color:#A0A0A0;">//	a=x-coordinate,</span><br />
b=mouseY; <span style="color:#A0A0A0;">//	b=y-coordinate</span><br />
c =++i % 8 / 8 + 10; <span style="color:#A0A0A0;">// c=radius, at the end of tunnel starts with a zigzag value 10=&lt; radius &lt;11</span><br />
d = (i &amp; 8 ) &lt;&lt; 4; <span style="color:#A0A0A0;">// d=color, stripes by starting with 0&#215;00 or 0&#215;80</span></p>
<p>for (j = 64; j&#8211;; ) {</p>
<p>ls(	<span style="color:#A0A0A0;">/*	ls=lineStyle<br />
*	I&#8217;m not using a solid fill, it&#8217;s circle&#8217;s thickness width enough<br />
* 	to cover the area<br />
*	increase the radius by factor 1.1, notice the initial value 10&#8230;11<br />
*/</span><br />
c *= 1.1,<br />
<span style="color:#A0A0A0;">/* 	color, initial value was 0&#215;00 black or 0&#215;80 dark blur,<br />
*	after the first subtract jumps to light yellowish values like 0xF1F180<br />
*	darkens red and green channels, blue gets cycling 00 or 0&#215;80<br />
*/</span><br />
d-=0&#215;50580);<br />
g.drawCircle(<br />
<span style="color:#A0A0A0;">/*	x and y starts from mouse&#8217;s position, and approaches the center of stage:<br />
*	x-coordinate, in the form a = (1*250+49*a)/50 it&#8217;s easier to see it approaches 250<br />
*	from 140 I had a couple of extra characters left<br />
*	so I added Math.sin(i/16), giving an extra waving effect<br />
*/<br />
</span> a = 5+a &#8211; a/50+ s(i/16),<br />
b = 5 + b &#8211; b / 50,<br />
c)<br />
}</p>
<p><a href="http://www.petrileskinen.fi/Actionscript/Tweetcodes/Recursion.swf">Recursion</a> &#8211; I wanted to check what could be gained by calling back the function f(e:Event) itself, actually maybe not much &#8211; a bit hard case for utilising the local and global vars in a correct way, just that I&#8217;ve always found recursive functions nicely challenging, and I later notices <a href="http://gskinner.com/playpen/tweetCoding1.html">Grant&#8217;s first example</a> of a 140 code was a recursion also.. This code was btw exactly 140 chars &#8211; no place for changes. And if you do something with this code, be careful, recursion&#8217;s a most powerful way to get your processor stucked, a pita too often ! Hint: the code gets the variables from mouse&#8217;s position, I think the most interesting setting are below the center point.<br />
<a href="http://www.petrileskinen.fi/Actionscript/Tweetcodes/Recursion.swf"><img src="http://farm4.static.flickr.com/3389/3309906292_9aa3bf591c_m.jpg" alt="" /></a><br />
if(!i++){ <span style="color:#A0A0A0;">// i is used for checking the level of iteration, if i==0,  initialize some vars and setup graphics </span><br />
g.clear();<br />
g.beginFill(0);<br />
a=b=250; <span style="color:#A0A0A0;">// x and y for circles, y not changed</span><br />
w=500; <span style="color:#A0A0A0;">// stage width</span><br />
c=mouseY; <span style="color:#A0A0A0;">// radius for largest 1st generation sphere</span><br />
d=mouseX/w   <span style="color:#A0A0A0;">// scaling between iterations, from 0 to 1</span><br />
}</p>
<p>if(i&lt;9){ <span style="color:#A0A0A0;">// control over not going too deep in iterations</span><br />
g.drawCircle(a,b,c); <span style="color:#A0A0A0;">// like x,y and radius in this case</span><br />
a*=d;<span style="color:#A0A0A0;"> // on a iteration, x and radius are scaled</span><br />
c*=d;<br />
f(e);  <span style="color:#A0A0A0;"> // I&#8217;ve always been obsessed with playing with recursions </span><br />
a=w-a; <span style="color:#A0A0A0;">// reflects x, gives the symmetry</span><br />
f(e);  <span style="color:#A0A0A0;"> // only room for two f(e)&#8217;s, no sierpinski&#8217;s this time</span><br />
a=(w-a)/d;  <span style="color:#A0A0A0;">// return to old value of a, warning, might cause div by zero, if mouseX=0</span><br />
c/=d    <span style="color:#A0A0A0;">// in a block you can leave out the ; at end</span><br />
}<br />
i&#8211; <span style="color:#A0A0A0;">// ; not necesserly here either</span></p>
<p>And as a bonus: <a href="http://www.petrileskinen.fi/Actionscript/Tweetcodes/Recursion4.html">an &#8216;untweetable&#8217; version- with a code &gt; 140</a></p>
<p><a href="http://www.petrileskinen.fi/Actionscript/Tweetcodes/Bullets.swf">Bullets &#8211; one more &#8216;untweetable&#8217;<br />
<img src="http://www.petrileskinen.fi/Actionscript/Tweetcodes/bullets.png" alt="" /></a></p>
<p>And don&#8217;t forget to also check <a href="http://www.quasimondo.com/">Quasimondo&#8217;s</a> or <a href="http://rmd.com.au/archives/tweetcoding-part-4-bubbles-sineribbon-feedback-vortex">Rob Muller&#8217;s</a> entries &#8211; among all the other impressive stuff of course.</p>
<p>Edit March 12, 2009 : Marvellously <a href="http://www.gskinner.com/blog/archives/2009/03/tweetcoding_win.html"> nice results of tweetcoding context</a> ! Ta-daa &#8230;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pixelero.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pixelero.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pixelero.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pixelero.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pixelero.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pixelero.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pixelero.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pixelero.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pixelero.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pixelero.wordpress.com/397/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=397&subd=pixelero&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pixelero.wordpress.com/2009/02/26/tweetcoding/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c3f5b99fb3777e7b8595238cb2692a1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pixelero</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3460/3309061396_124824de72_m.jpg" medium="image" />

		<media:content url="http://farm4.static.flickr.com/3389/3309906292_9aa3bf591c_m.jpg" medium="image" />

		<media:content url="http://www.petrileskinen.fi/Actionscript/Tweetcodes/bullets.png" medium="image" />
	</item>
		<item>
		<title>First Year of Blogging</title>
		<link>http://pixelero.wordpress.com/2009/02/18/first-year-of-blogging/</link>
		<comments>http://pixelero.wordpress.com/2009/02/18/first-year-of-blogging/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 06:50:30 +0000</pubDate>
		<dc:creator>pixelero</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[pixel bender]]></category>
		<category><![CDATA[anniversary]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[cellular automata]]></category>
		<category><![CDATA[fractal]]></category>
		<category><![CDATA[year]]></category>

		<guid isPermaLink="false">http://pixelero.wordpress.com/?p=384</guid>
		<description><![CDATA[Today it has been one year since my first blog post &#8230; so thank you all for your interest !

Total views: 48,699
Busiest day: 733 — Friday, January 23, 2009
(last value on the chart doesn&#8217;t mean attention dropping &#8211; this months pageviews not full yet)
&#8230; so far this month I&#8217;ve been a bit quiet, meanwhile hope [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=384&subd=pixelero&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today it has been one year since my first blog post &#8230; so thank you all for your interest !</p>
<p><img src="http://www.petrileskinen.fi/Actionscript/FirstYearStats2.png" alt="stats" /><br />
Total views: 48,699<br />
Busiest day: 733 — Friday, January 23, 2009<br />
(last value on the chart doesn&#8217;t mean attention dropping &#8211; this months pageviews not full yet)</p>
<p>&#8230; so far this month I&#8217;ve been a bit quiet, meanwhile hope you like some recent stuff on my flickr account: where you&#8217;ll find some fractals and cellular automata:<br />
<a title="ActivateInhibite (32,32,4,4); by piXelero, on Flickr" href="http://www.flickr.com/photos/pixelero/with/3274247851/"><img src="http://farm4.static.flickr.com/3401/3271192891_1e6d9507d5_m.jpg" alt="fractal #06 serie 110209" width="240" height="240" /> <img src="http://farm4.static.flickr.com/3487/3274247851_de6129da85_m.jpg" alt="ActivateInhibite CA" width="175" height="240" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pixelero.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pixelero.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pixelero.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pixelero.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pixelero.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pixelero.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pixelero.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pixelero.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pixelero.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pixelero.wordpress.com/384/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=384&subd=pixelero&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pixelero.wordpress.com/2009/02/18/first-year-of-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c3f5b99fb3777e7b8595238cb2692a1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pixelero</media:title>
		</media:content>

		<media:content url="http://www.petrileskinen.fi/Actionscript/FirstYearStats2.png" medium="image">
			<media:title type="html">stats</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3401/3271192891_1e6d9507d5_m.jpg" medium="image">
			<media:title type="html">fractal #06 serie 110209</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3487/3274247851_de6129da85_m.jpg" medium="image">
			<media:title type="html">ActivateInhibite CA</media:title>
		</media:content>
	</item>
		<item>
		<title>Flight 25</title>
		<link>http://pixelero.wordpress.com/2009/01/22/flight-25/</link>
		<comments>http://pixelero.wordpress.com/2009/01/22/flight-25/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 19:00:43 +0000</pubDate>
		<dc:creator>pixelero</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://pixelero.wordpress.com/?p=351</guid>
		<description><![CDATA[My entry for The 25-Line ActionScript Contest, candidate 008, a flight simulation over a terrain of perlinNoise.

Awfully long lines of code in an extremely compressed form isn&#8217;t the easiest thing to read, so here&#8217;s a couple of tricks for tightening code I came up with:
instead of
addEventListener(Event.ENTER_FRAME, update);

function update(e:Event):void {
var i:int=1, j:int =2, ii:int =0;
 ...
}
you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=351&subd=pixelero&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My entry for <a href="http://www.25lines.com/?page_id=186">The 25-Line ActionScript Contest</a>, <a href="http://www.25lines.com/finalists/0901/008.swf">candidate 008</a>, a flight simulation over a terrain of perlinNoise.</p>
<p><img style="padding:3px;" src="http://farm4.static.flickr.com/3308/3217544913_a64be21f99_m.jpg" alt="25lines" width="215" height="127" /><img style="padding:3px;" src="http://farm4.static.flickr.com/3329/3217544923_95a95de1cf_m.jpg" alt="25lines" width="217" height="127" /></p>
<p>Awfully <a href="http://www.25lines.com/finalists/0901/008.txt">long lines of code in an extremely compressed form </a>isn&#8217;t the easiest thing to read, so here&#8217;s a couple of tricks for tightening code I came up with:</p>
<p>instead of</p>
<div style="background:#D0D0FF;"><code>addEventListener(Event.ENTER_FRAME, update);<br />
</code></div>
<div style="background:#D0D0FF;"><code>function update(e:Event):void {<br />
<span style="color:#ff0000;">var i:int=1, j:int =2, ii:int =0;</span></code></div>
<div style="background:#D0D0FF;"><code> ...</code></div>
<div style="background:#D0D0FF;">}</div>
<p>you could write:</p>
<div style="background:#D0D0FF;"><code>addEventListener(Event.ENTER_FRAME, function update(e:Event<span style="color:#ff0000;">, i:int=1, j:int=2, ii:int=0</span>):void {</code></div>
<div style="background:#D0D0FF;">} // defaults has to be const values, though</div>
<p>and how to set pixels of a BitmapData on a single line:</p>
<div style="background:#D0D0FF;"><code>(bmd = new BitmapData(w,h,false)).setVector( new Rectangle(0, 0, </code><code>bmd</code><code>.width, </code><code>bmd</code><code>.height</code><code>), Vector.&lt;uint&gt;([0xebe9da, 0xebe1db, 0xe9e9da,/* long list of uints for the pixel values */ 0x00]));</code></div>
<p>&#8230; I think I&#8217;ll later post the whole code in a longer and more readable version as soon as I get some comments written on that.</p>
<p>Currently (January 22, 6:38 pm) my entry seems the be at 3rd place, with 10 votes (12,12,10, &#8230;) &#8211; so let&#8217;s see, anything might happen ! Who wouldn&#8217;t mind CS4 for a birthday present ?</p>
<p>Edit (January 23, 2009 at 8:48 am): Looks So Very Promising ! ok, I&#8217;m trying to keep cool, anything might still happen !</p>
<p>Edit (January 28, 2009 at 10:15 am): O-oh, my entry was leading all the weekend, now it looks like 030 has taken some votes ahead &#8230; But hey – you still have time to vote if haven&#8217;t already !</p>
<p>Edit (February 1st, 2009): Well, <a href="http://www.25lines.com/?p=225">new month</a>, new ideas &#8211; or actually old, writing 008 I did come up with couple of more ideas, so let&#8217;s see  !</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pixelero.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pixelero.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pixelero.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pixelero.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pixelero.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pixelero.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pixelero.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pixelero.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pixelero.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pixelero.wordpress.com/351/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=351&subd=pixelero&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pixelero.wordpress.com/2009/01/22/flight-25/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c3f5b99fb3777e7b8595238cb2692a1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pixelero</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3308/3217544913_a64be21f99_m.jpg" medium="image">
			<media:title type="html">25lines</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3329/3217544923_95a95de1cf_m.jpg" medium="image">
			<media:title type="html">25lines</media:title>
		</media:content>
	</item>
		<item>
		<title>Pixelero goes Wonderfl</title>
		<link>http://pixelero.wordpress.com/2009/01/12/wonderfl/</link>
		<comments>http://pixelero.wordpress.com/2009/01/12/wonderfl/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 09:23:35 +0000</pubDate>
		<dc:creator>pixelero</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[wonderfl actionscript as3]]></category>

		<guid isPermaLink="false">http://pixelero.wordpress.com/?p=335</guid>
		<description><![CDATA[
Build Flash online ?  A japanese site I found via Mrdoob&#8217;s blog !
&#8230; and here&#8217;s my first donation  for this common benefit &#8211; I searched my archives for some old coding attempt to create a hair-effect &#8211; and improved it online !
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=335&subd=pixelero&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:center;background:white;padding:15px;"><a href="http://wonderfl.kayac.com/"><img class="aligncenter" src="http://wonderfl.kayac.com/img/common/img_h1.gif" border="0" alt="wonderfl - build flash online" /></a></p>
<p><a href="http://wonderfl.kayac.com/">Build Flash online ? </a> A japanese site I found via <a href="http://mrdoob.com/blog/post/617" target="mrdoob">Mrdoob&#8217;s blog</a> !</p>
<p>&#8230; and here&#8217;s <a href="http://wonderfl.kayac.com/code/76a918a6db85a73261a79145d600714a663de4ba" target="wonderfl">my first donation </a> for this common benefit &#8211; I searched my archives for some old coding attempt to create a hair-effect &#8211; and improved it online !</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pixelero.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pixelero.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pixelero.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pixelero.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pixelero.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pixelero.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pixelero.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pixelero.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pixelero.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pixelero.wordpress.com/335/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pixelero.wordpress.com&blog=2904630&post=335&subd=pixelero&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pixelero.wordpress.com/2009/01/12/wonderfl/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8c3f5b99fb3777e7b8595238cb2692a1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pixelero</media:title>
		</media:content>

		<media:content url="http://wonderfl.kayac.com/img/common/img_h1.gif" medium="image">
			<media:title type="html">wonderfl - build flash online</media:title>
		</media:content>
	</item>
	</channel>
</rss>