<?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>Flash it!</title>
	<atom:link href="http://flashit.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashit.wordpress.com</link>
	<description>Just another blog of Flash/ActionScript experiments.</description>
	<lastBuildDate>Sun, 10 Feb 2008 02:35:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='flashit.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Flash it!</title>
		<link>http://flashit.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://flashit.wordpress.com/osd.xml" title="Flash it!" />
	<atom:link rel='hub' href='http://flashit.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Randomized smooth curves</title>
		<link>http://flashit.wordpress.com/2008/02/10/randomized-smooth-curves/</link>
		<comments>http://flashit.wordpress.com/2008/02/10/randomized-smooth-curves/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 02:26:15 +0000</pubDate>
		<dc:creator>saltschuler</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[curves smooth drawing]]></category>

		<guid isPermaLink="false">http://flashit.wordpress.com/?p=8</guid>
		<description><![CDATA[I was skimming through Keith Peters &#8220;Making Things Move&#8221; for AS2, and i stumbled upon a section about how to draw multiple smooth curves to form one smooth line. This has always puzzled me, so I decided to try it out, and i found that it&#8217;s a lot easier than I thought.  The idea is to pick some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashit.wordpress.com&amp;blog=2774488&amp;post=8&amp;subd=flashit&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was skimming through Keith Peters &#8220;Making Things Move&#8221; for AS2, and i stumbled upon a section about how to draw multiple smooth curves to form one smooth line. This has always puzzled me, so I decided to try it out, and i found that it&#8217;s a lot easier than I thought.</p>
<p> The idea is to pick some random points, at least 3, if you want to form a contiguous shape, and find their midpoints. Then use the midpoints as anchor points for the curveTo method and the randomized points as controlpoints.</p>
<p><a href="http://flashit.files.wordpress.com/2008/02/sc.jpg" title="Smooth curves"><img src="http://flashit.files.wordpress.com/2008/02/sc.jpg?w=500" alt="Smooth curves" /></a></p>
<p>Above image is an illustration of the concept. Blue dots are the randomized points. Black dots are the midpoints. Black line are the curves drawn with black dots as anchor points and blue dots as control points.</p>
<p>And thats it! Very simple indeed. I&#8217;ve made a little app that demonstrates the concept. Check it out <a href="http://simon.altschuler.dk/blog/smoothcurves/" title="Smooth curves concept app">here</a>. Drag the blues markers to change shape. Figure out what the buttons do yourself! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flashit.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flashit.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flashit.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flashit.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flashit.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flashit.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flashit.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flashit.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flashit.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flashit.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flashit.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flashit.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flashit.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flashit.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flashit.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flashit.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashit.wordpress.com&amp;blog=2774488&amp;post=8&amp;subd=flashit&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flashit.wordpress.com/2008/02/10/randomized-smooth-curves/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a19c863663c82ced066cbacdfa4ff8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saltschuler</media:title>
		</media:content>

		<media:content url="http://flashit.files.wordpress.com/2008/02/sc.jpg" medium="image">
			<media:title type="html">Smooth curves</media:title>
		</media:content>
	</item>
		<item>
		<title>Langton&#8217;s Ant</title>
		<link>http://flashit.wordpress.com/2008/02/06/langtons-ant/</link>
		<comments>http://flashit.wordpress.com/2008/02/06/langtons-ant/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 15:30:17 +0000</pubDate>
		<dc:creator>saltschuler</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[langton]]></category>
		<category><![CDATA[turning machine]]></category>

		<guid isPermaLink="false">http://flashit.wordpress.com/?p=3</guid>
		<description><![CDATA[Just finished my rough cut of an implementation of Langton&#8217;s Ant. It is a so called turning machine, invented by Chris Langton in 1986. The application consist of a grid containing all white squares, and the &#8220;ant&#8221; which is just a reference to the current position on the board (marked with a red square). For [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashit.wordpress.com&amp;blog=2774488&amp;post=3&amp;subd=flashit&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just finished my rough cut of an implementation of Langton&#8217;s Ant. It is a so called turning machine, invented by Chris Langton in 1986.</p>
<p>The application consist of a grid containing all white squares, and the &#8220;ant&#8221; which is just a reference to the current position on the board (marked with a red square). For every step of the iteration, the ant follows these two simple rules:</p>
<ul>
<li>If the ant is on a white square, turn 90° left, paint the square black and move forward one tile</li>
<li>If the ant is on a black square, turn 90° right, paint the square white and move forward one tile</li>
</ul>
<p>This, in spite of the very simple rule-set, results in some quite complex patterns, and at a certain point the ant starts building a &#8220;highway&#8221;, which is about 100 continuously repeated steps, forming a track in the southwestern direction.</p>
<p><strong>Here are some snapshots of the grid after a certain number of iterations</strong></p>
<p>100 iterations<br />
<a href="http://flashit.files.wordpress.com/2008/02/langton100.jpg" title="Langton’s Ant - 100 steps"><img src="http://flashit.files.wordpress.com/2008/02/langton100.jpg?w=500" alt="Langton’s Ant - 100 steps" /></a></p>
<p>1000 iterations<br />
<a href="http://flashit.files.wordpress.com/2008/02/langton1000.jpg" title="Langton’s Ant - 1000 steps"><img src="http://flashit.files.wordpress.com/2008/02/langton1000.jpg?w=500" alt="Langton’s Ant - 1000 steps" /></a></p>
<p>10000 iterations<br />
<a href="http://flashit.files.wordpress.com/2008/02/langton10000.jpg" title="Langton’s Ant - 10000 steps"><img src="http://flashit.files.wordpress.com/2008/02/langton10000.jpg?w=500" alt="Langton’s Ant - 10000 steps" /></a></p>
<p>Aaand, we have a highway! (about 13000 iterations)<br />
<a href="http://flashit.files.wordpress.com/2008/02/langton-final.jpg" title="Langton’s Ant - The highway has been built"><img src="http://flashit.files.wordpress.com/2008/02/langton-final.jpg?w=500" alt="Langton’s Ant - The highway has been built" /></a></p>
<p><strong> See for yourself <a href="http://simon.altschuler.dk/blog/langton" title="Langton's Ant Flash App">here</a> (be patient, it might take a moment to load).</strong></p>
<p>Source code can be found <a href="http://simon.altschuler.dk/blog/langton/LangtonsAnt.zip" title="Source code for Langtons Ant">here</a> (Flex Builder 2 archive file).</p>
<p><em>PS. The simulation tends to run faster if you move your cursor outside the SWF area, and to be honest, I have no idea why!?</em></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flashit.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flashit.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flashit.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flashit.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flashit.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flashit.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flashit.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flashit.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flashit.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flashit.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flashit.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flashit.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flashit.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flashit.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flashit.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flashit.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flashit.wordpress.com&amp;blog=2774488&amp;post=3&amp;subd=flashit&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flashit.wordpress.com/2008/02/06/langtons-ant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a19c863663c82ced066cbacdfa4ff8e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saltschuler</media:title>
		</media:content>

		<media:content url="http://flashit.files.wordpress.com/2008/02/langton100.jpg" medium="image">
			<media:title type="html">Langton’s Ant - 100 steps</media:title>
		</media:content>

		<media:content url="http://flashit.files.wordpress.com/2008/02/langton1000.jpg" medium="image">
			<media:title type="html">Langton’s Ant - 1000 steps</media:title>
		</media:content>

		<media:content url="http://flashit.files.wordpress.com/2008/02/langton10000.jpg" medium="image">
			<media:title type="html">Langton’s Ant - 10000 steps</media:title>
		</media:content>

		<media:content url="http://flashit.files.wordpress.com/2008/02/langton-final.jpg" medium="image">
			<media:title type="html">Langton’s Ant - The highway has been built</media:title>
		</media:content>
	</item>
	</channel>
</rss>
