<?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>Andy Li&#039;s Blog &#187; Uncategorized</title>
	<atom:link href="http://blog.onthewings.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.onthewings.net</link>
	<description>Blog on haXe, Flash/Flex, web development, design, media art, and my personal life.</description>
	<lastBuildDate>Sat, 23 Jul 2011 15:51:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>&#8220;Between the lines/書中&#8221;, an installation using Kinect and openFrameworks</title>
		<link>http://blog.onthewings.net/2011/07/23/between-the-lines-%e6%9b%b8%e4%b8%ad-an-installation-using-kinect-and-openframeworks/</link>
		<comments>http://blog.onthewings.net/2011/07/23/between-the-lines-%e6%9b%b8%e4%b8%ad-an-installation-using-kinect-and-openframeworks/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 12:22:42 +0000</pubDate>
		<dc:creator>Andy Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[CityU]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[OpenFrameworks]]></category>

		<guid isPermaLink="false">http://blog.onthewings.net/?p=1083</guid>
		<description><![CDATA[The installation art I have been working on since last month have been installed. You can now see it in action in Hong Kong Book Fair from 20-26 July at Hong Kong Exhibition and Convention Centre, inside the booth of CityU Press (1D-A28). 103" Plasma HD TVBy City University of Hong Kong Press &#160;&#124;&#160; View [...]]]></description>
			<content:encoded><![CDATA[<p>The installation art I have been working on since last month have been installed. You can now see it in action in <a href="http://hkbookfair.hktdc.com/">Hong Kong Book Fair</a> from 20-26 July at Hong Kong Exhibition and Convention Centre, inside the booth of <a href="http://www.cityupress.edu.hk/">CityU Press</a> (1D-A28).</p>
<div class='sohailfbbox'>
<div class='sohailfbboxhead'><img src='http://graph.facebook.com/96844704488/picture' align='left' style='margin-right:10px; width:40px; height:40px;' /><img src='http://blog.onthewings.net/wp-content/plugins/embed-facebook/images/photos.png' style='vertical-align:text-top' /> 103" Plasma HD TV<br /><span>By <a href='http://www.facebook.com/profile.php?id=96844704488' target='_blank'>City University of Hong Kong Press</a> &nbsp;|&nbsp; <a href='http://www.facebook.com/photo.php?fbid=10150280671979489&set=a.10150280671799489.346130.96844704488&type=1' target='_blank'>View on Facebook</a></span></div>
<div class='sohailfbboxbody'>
<a href='http://a2.sphotos.ak.fbcdn.net/hphotos-ak-snc6/285195_10150280671979489_96844704488_7506253_3424474_n.jpg' title='103" Plasma HD TV' onclick='return showSlideWindow(this, 600, 400);' class='viewable'><img src='http://a2.sphotos.ak.fbcdn.net/hphotos-ak-snc6/285195_10150280671979489_96844704488_7506253_3424474_n.jpg' style='max-width:100%' /></a></div>
</div>

<div class='sohailfbbox'>
<div class='sohailfbboxhead'><img src='http://graph.facebook.com/96844704488/picture' align='left' style='margin-right:10px; width:40px; height:40px;' /><img src='http://blog.onthewings.net/wp-content/plugins/embed-facebook/images/photos.png' style='vertical-align:text-top' /> Come and join us to play the interactive programme at our bo<br /><span>By <a href='http://www.facebook.com/profile.php?id=96844704488' target='_blank'>City University of Hong Kong Press</a> &nbsp;|&nbsp; <a href='http://www.facebook.com/photo.php?fbid=10150280672364489&set=a.10150280671799489.346130.96844704488&type=1' target='_blank'>View on Facebook</a></span></div>
<div class='sohailfbboxbody'>
<a href='http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc6/284143_10150280672364489_96844704488_7506266_180993_n.jpg' title='Come and join us to play the interactive programme at our booth' onclick='return showSlideWindow(this, 600, 400);' class='viewable'><img src='http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc6/284143_10150280672364489_96844704488_7506266_180993_n.jpg' style='max-width:100%' /></a></div>
</div>

<div class='sohailfbbox'>
<div class='sohailfbboxhead'><img src='http://graph.facebook.com/96844704488/picture' align='left' style='margin-right:10px; width:40px; height:40px;' /><img src='http://blog.onthewings.net/wp-content/plugins/embed-facebook/images/photos.png' style='vertical-align:text-top' /> <br /><span>By <a href='http://www.facebook.com/profile.php?id=96844704488' target='_blank'>City University of Hong Kong Press</a> &nbsp;|&nbsp; <a href='http://www.facebook.com/photo.php?fbid=10150280672209489&set=a.10150280671799489.346130.96844704488&type=1' target='_blank'>View on Facebook</a></span></div>
<div class='sohailfbboxbody'>
<a href='http://a7.sphotos.ak.fbcdn.net/hphotos-ak-snc6/284485_10150280672209489_96844704488_7506261_6168863_n.jpg' title='' onclick='return showSlideWindow(this, 600, 400);' class='viewable'><img src='http://a7.sphotos.ak.fbcdn.net/hphotos-ak-snc6/284485_10150280672209489_96844704488_7506261_6168863_n.jpg' style='max-width:100%' /></a></div>
</div>

<div class='sohailfbbox'>
<div class='sohailfbboxhead'><img src='http://graph.facebook.com/96844704488/picture' align='left' style='margin-right:10px; width:40px; height:40px;' /><img src='http://blog.onthewings.net/wp-content/plugins/embed-facebook/images/photos.png' style='vertical-align:text-top' /> <br /><span>By <a href='http://www.facebook.com/profile.php?id=96844704488' target='_blank'>City University of Hong Kong Press</a> &nbsp;|&nbsp; <a href='http://www.facebook.com/photo.php?fbid=10150280671884489&set=a.10150280671799489.346130.96844704488&type=1' target='_blank'>View on Facebook</a></span></div>
<div class='sohailfbboxbody'>
<a href='http://a4.sphotos.ak.fbcdn.net/hphotos-ak-snc6/283075_10150280671884489_96844704488_7506250_6004667_n.jpg' title='' onclick='return showSlideWindow(this, 600, 400);' class='viewable'><img src='http://a4.sphotos.ak.fbcdn.net/hphotos-ak-snc6/283075_10150280671884489_96844704488_7506250_6004667_n.jpg' style='max-width:100%' /></a></div>
</div>

<p><a href="http://en.wikipedia.org/wiki/Kinect">Kinect</a>(<a href="http://www.openni.org/">OpenNI</a>) is used for motion tracking, running a program I wrote in C++ with <a href="http://www.openframeworks.cc/">openFrameworks</a>. Collision and softbody simulation is done by <a href="http://www.bulletphysics.com/">Bullet</a>.</p>
<h3>Artist statement</h3>
<p>&#8220;Between the lines/書中&#8221; is an interactive installation that visualizes the famous Chinese proverb &#8220;書中自有黃金屋&#8221;, which literally means &#8220;A book holds a house of gold&#8221;.</p>
<p>Viewers can go into a 3D virtual space where Chinese literature sentences suspended all over the place. By waving and touching, the Chinese characters will be transformed into gold. And with enough golden characters, a house of gold will be constructed.</p>
<p>The Chinese sentences are extracted from The Four Books(四書), which are the authoritative texts of Confucianism(儒家) in China written two thousand years ago. They are displayed in both traditional Chinese calligraphy and modern fonts, in the meaning of those classic texts are relevant to society independent of time.</p>
<p>The interaction is a visual representation of the joyful and rewarding experience of reading books. There can be multiple viewers interact with the installation at the same time, which aligned to the fact that book reading can be a social process, where readers can share thoughts, recommend books to each other.</p>
<div id="attachment_1097" class="wp-caption alignleft" style="width: 370px"><a href="http://blog.onthewings.net/wp-content/uploads/2011/07/IMG_0419.jpg"><img class="size-medium wp-image-1097 " title="Chinese sentences" src="http://blog.onthewings.net/wp-content/uploads/2011/07/IMG_0419-450x300.jpg" alt="" width="360" height="240" /></a><p class="wp-caption-text">Chinese sentences that hang inside the screen.</p></div>
<div id="attachment_1098" class="wp-caption alignright" style="width: 310px"><a href="http://blog.onthewings.net/wp-content/uploads/2011/07/IMG_0418.jpg"><img class="size-medium wp-image-1098 " title="House of gold" src="http://blog.onthewings.net/wp-content/uploads/2011/07/IMG_0418-300x450.jpg" alt="" width="300" height="450" /></a><p class="wp-caption-text">The house of gold appears when there is enough golden sentences.</p></div>
<div id="attachment_1099" class="wp-caption alignleft" style="width: 370px"><a href="http://blog.onthewings.net/wp-content/uploads/2011/07/IMG_0431.jpg"><img class="size-medium wp-image-1099 " title="Viewers interacting with the installation" src="http://blog.onthewings.net/wp-content/uploads/2011/07/IMG_0431-450x300.jpg" alt="" width="360" height="240" /></a><p class="wp-caption-text">Viewers can touch the sentences and turn them into gold.</p></div>
<hr/>
<p><a href='http://www.facebook.com/video/video.php?v=255107494499599'>http://www.facebook.com/video/video.php?v=255107494499599</a></p>
<div class="tweetmeme_button" style="margin: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F07%2F23%2Fbetween-the-lines-%25e6%259b%25b8%25e4%25b8%25ad-an-installation-using-kinect-and-openframeworks%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F07%2F23%2Fbetween-the-lines-%25e6%259b%25b8%25e4%25b8%25ad-an-installation-using-kinect-and-openframeworks%2F&amp;source=andy_li&amp;style=compact&amp;service=bit.ly&amp;service_api=andyli%3AR_620a3608de8b1566599766b2ea71c3ba&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
 <p><a href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1083&amp;md5=fee187a8e9e348eb6a5f694bbb0424de" title="Flattr" target="_blank"><img src="http://blog.onthewings.net/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.onthewings.net/2011/07/23/between-the-lines-%e6%9b%b8%e4%b8%ad-an-installation-using-kinect-and-openframeworks/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<atom:link rel="payment" href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1083&amp;md5=fee187a8e9e348eb6a5f694bbb0424de" type="text/html" />"
	</item>
		<item>
		<title>Generative art in haXe and OpenFrameworks final round, showcasing in Playful Media 2011</title>
		<link>http://blog.onthewings.net/2011/06/24/generative-art-in-haxe-and-openframeworks-final-round-showcasing-in-playful-media-2011/</link>
		<comments>http://blog.onthewings.net/2011/06/24/generative-art-in-haxe-and-openframeworks-final-round-showcasing-in-playful-media-2011/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 07:00:48 +0000</pubDate>
		<dc:creator>Andy Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[CityU]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[haXe]]></category>
		<category><![CDATA[OpenFrameworks]]></category>
		<category><![CDATA[PLAYFUL MEDIA]]></category>

		<guid isPermaLink="false">http://blog.onthewings.net/?p=1059</guid>
		<description><![CDATA[The generative arts are going to be shown in Playful Media, which is the showcase of BScCM, the Bachelor degree program I graduated last year. This is going to be my 4th year joining the exhibition(2010, 2009, 2008)! If you are in Hong Kong and have time, come to have a look! It&#8217;s almost half a year, [...]]]></description>
			<content:encoded><![CDATA[<p>The generative arts are going to be shown in <a href="http://playfulmedia.hk/">Playful Media</a>, which is the showcase of <a href="http://sweb.cityu.edu.hk/bsccm/main/">BScCM</a>, the Bachelor degree program I graduated last year. This is going to be my 4th year joining the exhibition(<a href="http://blog.onthewings.net/2010/07/07/augmented-mirror-my-latest-project/">2010</a>, <a href="http://blog.onthewings.net/2009/06/30/miream-explained/">2009</a>, <a href="http://blog.onthewings.net/2008/06/25/photo-of-mirage/">2008</a>)! If you are in Hong Kong and have time, come to have a look!</p>
<p><a href="http://playfulmedia.hk/"><img class="size-full wp-image-1061 alignnone" title="Playful Media, SIG Showcase 2011" src="http://blog.onthewings.net/wp-content/uploads/2011/06/playfulMedia2011.jpg" alt="" width="510" height="720" /></a></p>
<p>It&#8217;s almost half a year, coding a piece of generative art everyday using <a href="http://haxe.org/">haXe</a> and <a href="http://www.openframeworks.cc/">openFrameworks</a>. It was certainly fun and educational to me, as I had to keep reading, trying and mixing all those generating methods, brainstorming new algorithm, looking for best programming approach etc. Doing all those things everyday sharpen my skill a lot, and I&#8217;m really excited when people <a href="http://twitter.com/skial/status/81713720207753216">tweet</a> <a href="http://twitter.com/nicoptere/status/56885683721224192">about</a> <a href="http://twitter.com/martin_lindelof/status/54851931721568256">them</a>, leave comment here or over <a href="http://www.flickr.com/photos/andy-li/sets/72157625719497466/">Flickr</a>. Thanks guys!</p>
<p>However, I decided to stop continuing the journey (at least for a while). Occurring to me often in the last few weeks, I either spent too much time on one piece, affecting my school works, or because I have to finish some urgent things, I tweaked only a little on the previous code, resulted in producing an unsatisfactory piece. I was sick and had a fever last week, which became a good time to close the project.</p>
<p>I now have more time to play with other interesting ideas, and finishing the works that queued up. <a href="http://github.com/andyli/hxOpenFrameworks/">hxOpenFrameworks</a> will continue be developed, of course. Let&#8217;s expect some <a href="http://opencv.willowgarage.com/wiki/">OpenCV</a>, Kinect (<a href="http://www.openni.org/">OpenNI</a>) and other goodness <img src='http://blog.onthewings.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Finally here are the selected pieces I made in June:</p>
<p>Kept the fractal circles idea going.<br />
<a href="http://www.flickr.com/photos/andy-li/5781509171/" title="20110601_000257 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3504/5781509171_ac668ec12e_z.jpg" width="640" height="400" alt="20110601_000257"></a><br />
<a href="http://www.flickr.com/photos/andy-li/5789528706/" title="20110602_150821 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3191/5789528706_1e932fda75_z.jpg" width="640" height="400" alt="20110602_150821"></a></p>
<p>Some more saturated color with complementary color scheme.<br />
<a href="http://www.flickr.com/photos/andy-li/5795971521/" title="20110604_203423 by on_the_wings, on Flickr"><img src="http://farm3.static.flickr.com/2434/5795971521_8ab710f3bf_z.jpg" width="640" height="400" alt="20110604_203423"></a></p>
<p>Reduced opacity, the circles merged nicely to each other.<br />
<a href="http://www.flickr.com/photos/andy-li/5808750022/" title="20110607_232554 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5038/5808750022_7a6cf51dbd_z.jpg" width="640" height="400" alt="20110607_232554"></a></p>
<p>Simplified but surprisely eye-catching vector-style flower.<br />
<a href="http://www.flickr.com/photos/andy-li/5818378888/" title="20110610_222235 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3340/5818378888_f2d437b0e9_z.jpg" width="640" height="400" alt="20110610_222235"></a></p>
<p>I ported Eugene Zatepyakin(in-spirit)&#8217;s AS3 <a href="http://code.google.com/p/in-spirit/source/browse/#svn%2Ftrunk%2Fprojects%2FFluidSolver">FluidSolver</a> to haXe and started to play with it.<br />
<a href="http://www.flickr.com/photos/andy-li/5822565570/" title="20110612_055429 by on_the_wings, on Flickr"><img src="http://farm3.static.flickr.com/2663/5822565570_bffc68a853_z.jpg" width="640" height="640" alt="20110612_055429"></a></p>
<p>Here I put several rotating color sources in the center and push out dark red colors. Pretty horror looking.<br />
<a href="http://www.flickr.com/photos/andy-li/5827920167/" title="20110613_194301 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3595/5827920167_2f63ea9e07_z.jpg" width="640" height="640" alt="20110613_194301"></a></p>
<p>More sources, larger radius. It looks like an eclipse, does it?<br />
<a href="http://www.flickr.com/photos/andy-li/5832930342/" title="20110614_230019 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3419/5832930342_751a1a74f9_z.jpg" width="640" height="640" alt="20110614_230019"></a></p>
<p>An eye-catching fire ring. The key is to add color and force periodically other than continuously.<br />
<a href="http://www.flickr.com/photos/andy-li/5836167300/" title="20110615_211730 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5236/5836167300_45420e0b0e_z.jpg" width="640" height="640" alt="20110615_211730"></a></p>
<p>Simulating the diffusion of ink on paper.<br />
<a href="http://www.flickr.com/photos/andy-li/5837337250/" title="20110616_042334 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5221/5837337250_ede801d87c_z.jpg" width="640" height="640" alt="20110616_042334"></a></p>
<p>A cup of generative latte. Think I can build an app for making <a href="http://www.google.com/search?q=coffee+art&#038;tbm=isch">coffee art</a>.<br />
<a href="http://www.flickr.com/photos/andy-li/5843292849/" title="20110618_065311 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5156/5843292849_2b0ce89a0e_z.jpg" width="640" height="640" alt="20110618_065311"></a></p>
<p>Another color, another pattern.<br />
<a href="http://www.flickr.com/photos/andy-li/5847283209/" title="20110619_135648 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5160/5847283209_9ed3c1bb28_z.jpg" width="640" height="640" alt="20110619_135648"></a>
<div class="tweetmeme_button" style="margin: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F06%2F24%2Fgenerative-art-in-haxe-and-openframeworks-final-round-showcasing-in-playful-media-2011%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F06%2F24%2Fgenerative-art-in-haxe-and-openframeworks-final-round-showcasing-in-playful-media-2011%2F&amp;source=andy_li&amp;style=compact&amp;service=bit.ly&amp;service_api=andyli%3AR_620a3608de8b1566599766b2ea71c3ba&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
 <p><a href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1059&amp;md5=98ed443b5f5702f24d9cd5fb5329432e" title="Flattr" target="_blank"><img src="http://blog.onthewings.net/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.onthewings.net/2011/06/24/generative-art-in-haxe-and-openframeworks-final-round-showcasing-in-playful-media-2011/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<atom:link rel="payment" href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1059&amp;md5=98ed443b5f5702f24d9cd5fb5329432e" type="text/html" />"
	</item>
		<item>
		<title>haXe jQueryExtern update: align with 1.6.1, &#8216;jQuery&#8217; package&#8230;</title>
		<link>http://blog.onthewings.net/2011/06/12/haxe-jqueryextern-update-align-with-1-6-1-jquery-package/</link>
		<comments>http://blog.onthewings.net/2011/06/12/haxe-jqueryextern-update-align-with-1-6-1-jquery-package/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 16:00:43 +0000</pubDate>
		<dc:creator>Andy Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[haXe]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.onthewings.net/?p=1053</guid>
		<description><![CDATA[I&#8217;ve recently updated jQueryExtern to align with jQuery 1.6.1. To get it, use the usual &#8220;haxelib upgrade&#8221; (or &#8220;haxelib install jQueryExtern&#8221; if you have not installed it previously). I introduced some changes that would like to expain here: package jQuery; Finally jQueryExtern has its own package, &#8220;jQuery&#8221;. The previous &#8220;jQueryPlugins&#8221; package is also moved to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently updated <a href="http://lib.haxe.org/p/jQueryExtern">jQueryExtern</a> to align with <a href="http://api.jquery.com/category/version/1.6/">jQuery 1.6.1</a>. To get it, use the usual &#8220;haxelib upgrade&#8221; (or &#8220;haxelib install jQueryExtern&#8221; if you have not installed it previously).</p>
<p>I introduced some changes that would like to expain here:</p>
<h3>package jQuery;</h3>
<p>Finally jQueryExtern has its own package, &#8220;jQuery&#8221;. The previous &#8220;jQueryPlugins&#8221; package is also moved to &#8220;jQuery.plugins&#8221;.</p>
<p>It is done because jQuery has more and more types, eg. &#8220;<a href="http://api.jquery.com/Types/#jqXHR">jqXHR</a>&#8220;, &#8220;<a href="http://api.jquery.com/category/deferred-object/">Deferred</a>&#8220; and&#8221;<a href="http://api.jquery.com/Types/#Promise">Promise</a>&#8221; are introduced in jQuery 1.5. In the previous versions of jQueryExtern, most of them are prefixed by &#8220;JQuery&#8221; (&#8220;JQueryPromise&#8221;, &#8220;JQueryDeferred&#8221;, &#8220;JQueryEvent&#8221;) which is lengthy and redundant, with &#8220;jQuery&#8221; package, it is now safe to remove the prefix. In case of name collision, simply use the fully qualified names, eg &#8220;jQuery.Event&#8221;.</p>
<p>To conclude, you should now &#8220;include jQuery.JQuery;&#8221; instead of &#8220;include JQuery;&#8221;.</p>
<h3>JQueryStatic and _static</h3>
<p>To solve the problem of haXe disallowing the use of same name for static and non-static members, previously I grouped the static methods into a separate class &#8220;JQueryS&#8221;. It is now renamed as &#8220;JQueryStatic&#8221;, which is more meaningful.</p>
<p>I&#8217;ve also added a &#8220;_static&#8221; static property to &#8220;JQuery&#8221;. It is for the people who don&#8217;t read documentation, when they type &#8220;JQuery.&#8221;, there is still a code completion &#8220;_static&#8221; for them to retrieve the &#8220;JQueryStatic&#8221; class.</p>
<p>Whether to use &#8220;JQuery._static&#8221; or &#8220;JQueryStatic&#8221; is up to you.</p>
<h3>Backward compatibility and JQUERY_NO_DEPRECATED</h3>
<p>Don&#8217;t worry on having to change all your production codes to match the changes mentioned above. I&#8217;ve included a top-level &#8220;JQuery.hx&#8221; for maintaining backward compatibility. A number of typedef are placed there to solve the old naming.</p>
<p>However, the old naming are deprecated and the top-level &#8220;JQuery.hx&#8221; will be removed a few versions later. You should try to update your code and test with &#8220;-D JQUERY_NO_DEPRECATED&#8221;.</p>
<p>The typedef trick have not been made for the plug-ins, so if you&#8217;re using any of the plug-ins, you have to make the changes when updating to jQueryExtern 1.6.1.
<div class="tweetmeme_button" style="margin: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F06%2F12%2Fhaxe-jqueryextern-update-align-with-1-6-1-jquery-package%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F06%2F12%2Fhaxe-jqueryextern-update-align-with-1-6-1-jquery-package%2F&amp;source=andy_li&amp;style=compact&amp;service=bit.ly&amp;service_api=andyli%3AR_620a3608de8b1566599766b2ea71c3ba&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
 <p><a href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1053&amp;md5=6f60914576d0e38d16f1aa4ddf176d8c" title="Flattr" target="_blank"><img src="http://blog.onthewings.net/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.onthewings.net/2011/06/12/haxe-jqueryextern-update-align-with-1-6-1-jquery-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1053&amp;md5=6f60914576d0e38d16f1aa4ddf176d8c" type="text/html" />"
	</item>
		<item>
		<title>Creating generative art in haXe and OpenFrameworks (May 2011)</title>
		<link>http://blog.onthewings.net/2011/06/01/creating-generative-art-in-haxe-and-openframeworks-may-2011/</link>
		<comments>http://blog.onthewings.net/2011/06/01/creating-generative-art-in-haxe-and-openframeworks-may-2011/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 11:00:56 +0000</pubDate>
		<dc:creator>Andy Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[haXe]]></category>
		<category><![CDATA[OpenFrameworks]]></category>

		<guid isPermaLink="false">http://blog.onthewings.net/?p=1044</guid>
		<description><![CDATA[The fifth month of doing a piece of generative art everyday using haXe and openframeworks. As a reminder, all the pieces can be viewed from my Flickr set. Also the haXe source code for generating those images can be found in the description in the corresponding Flickr page. Here below are the selected pieces made [...]]]></description>
			<content:encoded><![CDATA[<p>The fifth month of doing a piece of generative art everyday using <a href="http://haxe.org/">haXe </a>and <a href="http://www.openframeworks.cc/">openframeworks</a>. As a reminder, all the pieces can be viewed from my <a href="http://www.flickr.com/photos/andy-li/sets/72157625719497466/">Flickr set</a>. Also the haXe source code for generating those images can be found in the description in the corresponding Flickr page. Here below are the selected pieces made in this month:</p>
<p>Drawing only part of the lines generated by midpoint displacement algorithm can give out some interesting unknown creature contours, looking into each other&#8217;s eyes.<br />
<a href="http://www.flickr.com/photos/andy-li/5675873822/" title="20110501_213017 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5186/5675873822_215f853558_z.jpg" width="640" height="400" alt="20110501_213017"></a></p>
<p>Another arrangement. It now looks like an island.<br />
<a href="http://www.flickr.com/photos/andy-li/5680124504/" title="20110502_215047 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5149/5680124504_faaa94d9f8_z.jpg" width="640" height="400" alt="20110502_215047"></a></p>
<p>Used a algorithm that I read from somewhere, that start with a point with some color, for each iteration the color spread to the neighbors with a little variation. I really love its oil-painting texture.<br />
<a href="http://www.flickr.com/photos/andy-li/5684227324/" title="20110503_234909 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5181/5684227324_48a99ff30f_z.jpg" width="640" height="480" alt="20110503_234909"></a></p>
<p>Increased the spread&#8217;s random factor, allowing it to spread a little bit backward.<br />
<a href="http://www.flickr.com/photos/andy-li/5686582667/" title="20110504_211026 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5142/5686582667_8fcba9d92f_z.jpg" width="640" height="480" alt="20110504_211026"></a></p>
<p>Keeped changing the spread implementation. This one keep increasing its hue from the center with a probability of reseting itself (to red).<br />
<a href="http://www.flickr.com/photos/andy-li/5687880919/" title="20110505_051547 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5110/5687880919_e45c27c5a8_z.jpg" width="640" height="480" alt="20110505_051547"></a></p>
<p>Made the spread much more unstable and let there be more than one starting point. Resetting the lightness to 0 periodically gave out interesting organic layers.<br />
<a href="http://www.flickr.com/photos/andy-li/5696686552/" title="20110508_003406 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3017/5696686552_4c0c0283ae_z.jpg" width="640" height="480" alt="20110508_003406"></a></p>
<p>Well, a beautiful rainbow color cup water mark on tablecloth&#8230;?<br />
<a href="http://www.flickr.com/photos/andy-li/5703327495/" title="20110509_233447 by on_the_wings, on Flickr"><img src="http://farm3.static.flickr.com/2193/5703327495_9c785804b5_z.jpg" width="640" height="480" alt="20110509_233447"></a></p>
<p>Played with fractal patterns. Full of circles in different sizes and positions in ratio.<br />
<a href="http://www.flickr.com/photos/andy-li/5720083630/" title="20110515_050235 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3460/5720083630_ccf88a3940_z.jpg" width="640" height="400" alt="20110515_050235"></a><br />
<a href="http://www.flickr.com/photos/andy-li/5723592310/" title="20110516_031307 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5141/5723592310_7e91afe416_z.jpg" width="640" height="400" alt="20110516_031307"></a><br />
<a href="http://www.flickr.com/photos/andy-li/5726579451/" title="20110517_003704 by on_the_wings, on Flickr"><img src="http://farm3.static.flickr.com/2606/5726579451_750203d0de_z.jpg" width="640" height="400" alt="20110517_003704"></a></p>
<p>Used only small circles. Pretty cyber-looking.<br />
<a href="http://www.flickr.com/photos/andy-li/5744783864/" title="20110522_083005 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3340/5744783864_10bf4d678b_z.jpg" width="640" height="400" alt="20110522_083005"></a></p>
<p>Used solid-filled circles. Colorful snowflakes.<br />
<a href="http://www.flickr.com/photos/andy-li/5753201159/" title="20110524_121242 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3603/5753201159_5ea2866763_z.jpg" width="640" height="400" alt="20110524_121242"></a><br />
<a href="http://www.flickr.com/photos/andy-li/5758576752/" title="20110525_215533 by on_the_wings, on Flickr"><img src="http://farm3.static.flickr.com/2384/5758576752_9d79ab8c1b_z.jpg" width="640" height="400" alt="20110525_215533"></a></p>
<p>Simpler smaller patterns.<br />
<a href="http://www.flickr.com/photos/andy-li/5770548679/" title="20110529_164803 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3266/5770548679_9b8e4744f7_z.jpg" width="640" height="400" alt="20110529_164803"></a><br />
<a href="http://www.flickr.com/photos/andy-li/5776232372/" title="20110530_212615 by on_the_wings, on Flickr"><img src="http://farm4.static.flickr.com/3373/5776232372_31f512fefb_z.jpg" width="640" height="400" alt="20110530_212615"></a>
<div class="tweetmeme_button" style="margin: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F06%2F01%2Fcreating-generative-art-in-haxe-and-openframeworks-may-2011%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F06%2F01%2Fcreating-generative-art-in-haxe-and-openframeworks-may-2011%2F&amp;source=andy_li&amp;style=compact&amp;service=bit.ly&amp;service_api=andyli%3AR_620a3608de8b1566599766b2ea71c3ba&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
 <p><a href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1044&amp;md5=877bf5290a198f238d7866ceb5b3c30a" title="Flattr" target="_blank"><img src="http://blog.onthewings.net/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.onthewings.net/2011/06/01/creating-generative-art-in-haxe-and-openframeworks-may-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1044&amp;md5=877bf5290a198f238d7866ceb5b3c30a" type="text/html" />"
	</item>
		<item>
		<title>Creating generative art in haXe and OpenFrameworks (April 2011)</title>
		<link>http://blog.onthewings.net/2011/05/05/creating-generative-art-in-haxe-and-openframeworks-april-2011/</link>
		<comments>http://blog.onthewings.net/2011/05/05/creating-generative-art-in-haxe-and-openframeworks-april-2011/#comments</comments>
		<pubDate>Wed, 04 May 2011 17:08:01 +0000</pubDate>
		<dc:creator>Andy Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[haXe]]></category>
		<category><![CDATA[OpenFrameworks]]></category>

		<guid isPermaLink="false">http://blog.onthewings.net/?p=1028</guid>
		<description><![CDATA[Here comes the forth month of doing a piece of generative art everyday. Every time I ran out of ideas, forcing myself to code brought me some unexpected results. It&#8217;s a starry night on a overcrowded planet. A simple but beautiful piece. Nothing complex there, just some random circles/rectangles placed together with a very thin [...]]]></description>
			<content:encoded><![CDATA[<p>Here comes the forth month of doing a piece of generative art everyday. Every time I ran out of ideas, forcing myself to code brought me some unexpected results.</p>
<p>It&#8217;s a starry night on a overcrowded planet. A simple but beautiful piece. Nothing complex there, just some random circles/rectangles placed together with a very thin layer of <a href="http://en.wikipedia.org/wiki/Perlin_noise">perlin noise</a> as cloud. Be sure to click on it to view it in full size.<br />
<a href="http://www.flickr.com/photos/andy-li/5597503891/sizes/o/" title="20110407_220310 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5107/5597503891_c655e38350_z.jpg" width="640" height="400" alt="20110407_220310"></a></p>
<p>Discovered an interesting wave pattern while trying to implement <a href="http://en.wikipedia.org/wiki/Diamond-square_algorithm#Midpoint_displacement_algorithm">midpoint displacement algorithm</a>.<br />
<a href="http://www.flickr.com/photos/andy-li/5602483525/" title="20110409_202423 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5188/5602483525_5c4db7d757_z.jpg" width="640" height="400" alt="20110409_202423"></a></p>
<p>Below is a typical mountain created by <a href="http://en.wikipedia.org/wiki/Diamond-square_algorithm#Midpoint_displacement_algorithm">midpoint displacement algorithm</a>. Notice the sky and the mountain shares the same algorithm.<br />
<a href="http://www.flickr.com/photos/andy-li/5624729260/" title="20110416_230603 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5186/5624729260_45cda05fa1_z.jpg" width="640" height="480" alt="20110416_230603"></a></p>
<p>Let it displaces in color space instead of xy-plane.<br />
<a href="http://www.flickr.com/photos/andy-li/5634230185/" title="20110419_213919 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5062/5634230185_eb9bc9d8ba_z.jpg" width="640" height="400" alt="20110419_213919"></a></p>
<p>Same as above but with slightly different painting method.<br />
<a href="http://www.flickr.com/photos/andy-li/5637921034/" title="20110420_222149 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5107/5637921034_764ee59fbb_z.jpg" width="640" height="400" alt="20110420_222149"></a></p>
<p>Changing the input lines to circular form created a perspective. It&#8217;s like the grand canyon is undergoing sandstorm.<br />
<a href="http://www.flickr.com/photos/andy-li/5643315534/" title="20110422_203705 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5102/5643315534_e830764a57_z.jpg" width="640" height="400" alt="20110422_203705"></a></p>
<p>I&#8217;ve also tried making procedural cloud from old-school <a href="http://en.wikipedia.org/wiki/Perlin_noise">perlin noise</a>.<br />
<a href="http://www.flickr.com/photos/andy-li/5611909345/" title="20110412_133431 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5304/5611909345_6b79a37776_z.jpg" width="640" height="400" alt="20110412_133431"></a></p>
<p>Applying <a href="http://en.wikipedia.org/wiki/Perlin_noise">perlin noise</a> in some mixed strange color spaces(YUV, XYZ, HSL) instead of regular RGB.<br />
<a href="http://www.flickr.com/photos/andy-li/5660318891/" title="20110427_173428 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5267/5660318891_c0afb8abb1_z.jpg" width="640" height="480" alt="20110427_173428"></a>
<div class="tweetmeme_button" style="margin: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F05%2F05%2Fcreating-generative-art-in-haxe-and-openframeworks-april-2011%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F05%2F05%2Fcreating-generative-art-in-haxe-and-openframeworks-april-2011%2F&amp;source=andy_li&amp;style=compact&amp;service=bit.ly&amp;service_api=andyli%3AR_620a3608de8b1566599766b2ea71c3ba&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
 <p><a href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1028&amp;md5=4d78472e04906ad1d3d51b99064459fe" title="Flattr" target="_blank"><img src="http://blog.onthewings.net/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.onthewings.net/2011/05/05/creating-generative-art-in-haxe-and-openframeworks-april-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1028&amp;md5=4d78472e04906ad1d3d51b99064459fe" type="text/html" />"
	</item>
		<item>
		<title>6÷2(1+2)=?</title>
		<link>http://blog.onthewings.net/2011/05/02/six-divided-by-two-bracket-one-plus-two/</link>
		<comments>http://blog.onthewings.net/2011/05/02/six-divided-by-two-bracket-one-plus-two/#comments</comments>
		<pubDate>Sun, 01 May 2011 19:03:36 +0000</pubDate>
		<dc:creator>Andy Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.onthewings.net/?p=1007</guid>
		<description><![CDATA[6÷2(1+2)=? It's a question that comes around in Facebook recently (I've also read it somewhere in the past). There are two major answers: "1" and "9". For "1", (Assuming “multiplication by juxtaposition” has higher precedence than regular division. Whether the assumption is true, is depending on which literature is being referred to. If you don't [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>6÷2(1+2)=?</p></blockquote>
<p>It's a question that comes around in Facebook recently (I've also read it somewhere in the past). There are two major answers: "1" and "9".</p>
<p>For "1", (Assuming “multiplication by juxtaposition” has higher precedence than regular division. Whether the assumption is true, is depending on which literature is being referred to. If you don't agree on it, the answer is simply 9)</p>
<p style="padding-left: 30px;">6÷(2×(1+2))<br />
=6÷(2×3)<br />
=6÷6<br />
=1</p>
<p>For "9",</p>
<p style="padding-left: 30px;">6/2*(1+2)<br />
=6/2*3<br />
=3*3<br />
=9</p>
<p>Notice the question is interpreted differently, you can tell it from looking at the symbols. One is mathematical notation, another is program operator notation.</p>
<p>The difference between mathematics and programming shown above is that, they use different kind of symbols(operators), so they have different <a href="http://en.wikipedia.org/wiki/Order_of_operations">order of operation</a>.</p>
<div style="display:block; width:100%; height:300px;">
<div id="attachment_1008" class="wp-caption alignleft" style="width: 210px"><a href="http://blog.onthewings.net/wp-content/uploads/2011/05/google.png"><img class="size-thumbnail wp-image-1008" title="Google search result of &quot;6÷2(1+2)&quot;" src="http://blog.onthewings.net/wp-content/uploads/2011/05/google-200x200.png" alt="" width="200" height="200" /></a><p class="wp-caption-text">Google thinks that is 9. <br/><a href='http://www.google.com.hk/search?q=6%C3%B72(1%2B2)'>Check it yourself.</a></p></div>
<div id="attachment_1009" class="wp-caption alignleft" style="width: 210px"><a href="http://blog.onthewings.net/wp-content/uploads/2011/05/wolframalpha.png"><img class="size-thumbnail wp-image-1009" title="WolframAlpha result of &quot;6÷2(1+2)&quot;" src="http://blog.onthewings.net/wp-content/uploads/2011/05/wolframalpha-200x200.png" alt="" width="200" height="200" /></a><p class="wp-caption-text">WolframAlpha thinks that is 9. <br/><a href='http://www.wolframalpha.com/input/?i=6%C3%B72%281%2B2%29'>Check it yourself.</a></p></div>
<div id="attachment_1010" class="wp-caption alignleft" style="width: 210px"><a href="http://blog.onthewings.net/wp-content/uploads/2011/05/IMG_20110502_022439.jpg"><img class="size-thumbnail wp-image-1010" title="Casio calculator's result on &quot;6÷2(1+2)&quot;" src="http://blog.onthewings.net/wp-content/uploads/2011/05/IMG_20110502_022439-200x200.jpg" alt="" width="200" height="200" /></a><p class="wp-caption-text">My Casio calculator thinks that is 1.</p></div>
</div>
<p>One interesting thing is, even in programming, different programming languages may have different order of operation, ie. they have different operator precedence (or <a href="http://en.wikipedia.org/wiki/Operator_associativity">operator associativity</a>). The difference is mostly on bitwise operations(eg. <strong>&lt;&lt;</strong> <strong>&amp;</strong> <strong>|</strong>), and it has been a nightmare for programmers who want to port algorithms between languages. And luckily <a href="http://haxe.org/">haXe</a>, the language I'm in love with, that outputs C++/JS/PHP and others, already abstracted the different by inserting the necessary brackets in the output automatically(<a href="http://haxe.org/manual/operators">see here</a>). So I'm happily writing codes in haXe and share the same result in different platforms <img src='http://blog.onthewings.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> 
<div class="tweetmeme_button" style="margin: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F05%2F02%2Fsix-divided-by-two-bracket-one-plus-two%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F05%2F02%2Fsix-divided-by-two-bracket-one-plus-two%2F&amp;source=andy_li&amp;style=compact&amp;service=bit.ly&amp;service_api=andyli%3AR_620a3608de8b1566599766b2ea71c3ba&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
 <p><a href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1007&amp;md5=057abe4ffad409ac083482ee78d55a84" title="Flattr" target="_blank"><img src="http://blog.onthewings.net/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.onthewings.net/2011/05/02/six-divided-by-two-bracket-one-plus-two/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<atom:link rel="payment" href="http://blog.onthewings.net/?flattrss_redirect&amp;id=1007&amp;md5=057abe4ffad409ac083482ee78d55a84" type="text/html" />"
	</item>
		<item>
		<title>Creating generative art in haXe and OpenFrameworks (March 2011)</title>
		<link>http://blog.onthewings.net/2011/04/04/creating-generative-art-in-haxe-and-openframeworks-march-2011/</link>
		<comments>http://blog.onthewings.net/2011/04/04/creating-generative-art-in-haxe-and-openframeworks-march-2011/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 09:48:38 +0000</pubDate>
		<dc:creator>Andy Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[haXe]]></category>
		<category><![CDATA[OpenFrameworks]]></category>

		<guid isPermaLink="false">http://blog.onthewings.net/?p=986</guid>
		<description><![CDATA[It&#8217;s already the 3rd month of doing a piece of generative art everyday. Here are some selected pieces. Reused previous month&#8217;s feather code to make a sensitive plant. Backed to play with abstract geometry. I like its sketch style wooden texture. Following one gives some nice harmonic color. Replacing lines with circles, it&#8217;s now more [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s already the 3rd month of doing a piece of generative art everyday. Here are some selected pieces.</p>
<p>Reused previous month&#8217;s feather code to make a sensitive plant.<br />
<a href="http://www.flickr.com/photos/andy-li/5476423626/" title="20110225_210355 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5173/5476423626_2e50295c6b_z.jpg" width="640" height="360" alt="20110225_210355"></a></p>
<p>Backed to play with abstract geometry. I like its sketch style wooden texture.<br />
<a href="http://www.flickr.com/photos/andy-li/5481781064/" title="20110227_191144 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5133/5481781064_07dcdc3a48_z.jpg" width="640" height="360" alt="20110227_191144"></a></p>
<p>Following one gives some nice harmonic color.<br />
<a href="http://www.flickr.com/photos/andy-li/5498807815/" title="20110305_202302 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5293/5498807815_d126a728fa_z.jpg" width="640" height="400" alt="20110305_202302"></a><br />
<a href="http://www.flickr.com/photos/andy-li/5499403988/" title="20110305_202309 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5060/5499403988_98a347b520_z.jpg" width="640" height="400" alt="20110305_202309"></a></p>
<p>Replacing lines with circles, it&#8217;s now more saturated.<br />
<a href="http://www.flickr.com/photos/andy-li/5501779725/" title="20110306_202618 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5013/5501779725_820662a751_z.jpg" width="640" height="400" alt="20110306_202618"></a></p>
<p>Since Martin Lindelöf made available its <a href="http://www.martinlindelof.com/physics/clothx/">clothx</a> physics lib, which is based on <a href="http://murderandcreate.com/physics/">traer physics</a> for <a href="http://processing.org/">Processing</a>, I used its spring/attraction system to draw some stuff.<br />
<a href="http://www.flickr.com/photos/andy-li/5508536897/" title="20110308_193753 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5217/5508536897_7b1120995f_z.jpg" width="640" height="400" alt="20110308_193753"></a></p>
<p>It is very easy to create beautiful structures with the lib.<br />
<a href="http://www.flickr.com/photos/andy-li/5515645932/" title="20110311_031007 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5135/5515645932_240cd85dab_z.jpg" width="640" height="400" alt="20110311_031007"></a><br />
<a href="http://www.flickr.com/photos/andy-li/5515055085/" title="20110311_031333 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5173/5515055085_b8701a9391_z.jpg" width="640" height="400" alt="20110311_031333"></a></p>
<p>More organic one. Stroke size is proportional to particle speed.<br />
<a href="http://www.flickr.com/photos/andy-li/5522289682/" title="20110313_172705 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5294/5522289682_89665f29bb_z.jpg" width="640" height="400" alt="20110313_172705"></a></p>
<p>Linking up the particles.<br />
<a href="http://www.flickr.com/photos/andy-li/5525767896/" title="20110314_161400 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5175/5525767896_bc905906bf_z.jpg" width="640" height="400" alt="20110314_161400"></a></p>
<p>Sorting the particles before drawing in each frame.<br />
<a href="http://www.flickr.com/photos/andy-li/5528354133/" title="20110315_171922 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5215/5528354133_daef9f5577_z.jpg" width="640" height="400" alt="20110315_171922"></a></p>
<p>Old school generative curves. Can you hear the sound?<br />
<a href="http://www.flickr.com/photos/andy-li/5536822567/" title="20110318_214522 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5177/5536822567_739cf79c0b_z.jpg" width="640" height="400" alt="20110318_214522"></a></p>
<p>Smaller, moving strings.<br />
<a href="http://www.flickr.com/photos/andy-li/5546412590/" title="20110321_173927 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5024/5546412590_923c312766_z.jpg" width="640" height="400" alt="20110321_173927"></a></p>
<p>Fixed, more complex strings with rainbow colors.<br />
<a href="http://www.flickr.com/photos/andy-li/5549186237/" title="20110322_172246 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5173/5549186237_137cf460f2_z.jpg" width="640" height="400" alt="20110322_172246"></a></p>
<p>Scaling up.<br />
<a href="http://www.flickr.com/photos/andy-li/5552753514/" title="20110323_173620 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5059/5552753514_5950e1b6e1_z.jpg" width="640" height="400" alt="20110323_173620"></a></p>
<p>Scaling down with blood vessel colors.<br />
<a href="http://www.flickr.com/photos/andy-li/5558981478/" title="20110326_001833 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5187/5558981478_4cfef78acb_z.jpg" width="640" height="400" alt="20110326_001833"></a></p>
<p>Even more complex strings. Simply drawing them down but not painting them frame-by-frame like the previous ones.<br />
<a href="http://www.flickr.com/photos/andy-li/5568080040/" title="20110328_195131 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5260/5568080040_467715ffc6_z.jpg" width="640" height="480" alt="20110328_195131"></a><br />
<a href="http://www.flickr.com/photos/andy-li/5571655848/" title="20110329_232009 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5179/5571655848_3cfe3897f3_z.jpg" width="640" height="480" alt="20110329_232009"></a><br />
<a href="http://www.flickr.com/photos/andy-li/5572234422/" title="20110330_033407 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5225/5572234422_bca4c5598d_z.jpg" width="640" height="480" alt="20110330_033407"></a></p>
<p>Colored version. It looks like coral. Maybe the algorithm is similar to coral&#8217;s growth.<br />
<a href="http://www.flickr.com/photos/andy-li/5577331364/" title="20110331_235757 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5178/5577331364_78aa7cff0d_z.jpg" width="640" height="480" alt="20110331_235757"></a><br />
<a href="http://www.flickr.com/photos/andy-li/5579192901/" title="20110401_223752 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5091/5579192901_244bb40eb2_z.jpg" width="640" height="480" alt="20110401_223752"></a>
<div class="tweetmeme_button" style="margin: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F04%2F04%2Fcreating-generative-art-in-haxe-and-openframeworks-march-2011%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F04%2F04%2Fcreating-generative-art-in-haxe-and-openframeworks-march-2011%2F&amp;source=andy_li&amp;style=compact&amp;service=bit.ly&amp;service_api=andyli%3AR_620a3608de8b1566599766b2ea71c3ba&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
 <p><a href="http://blog.onthewings.net/?flattrss_redirect&amp;id=986&amp;md5=d5bccf8ad7e2cf975c04864b69055783" title="Flattr" target="_blank"><img src="http://blog.onthewings.net/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.onthewings.net/2011/04/04/creating-generative-art-in-haxe-and-openframeworks-march-2011/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<atom:link rel="payment" href="http://blog.onthewings.net/?flattrss_redirect&amp;id=986&amp;md5=d5bccf8ad7e2cf975c04864b69055783" type="text/html" />"
	</item>
		<item>
		<title>hxOpenFrameworks is now on haxelib!</title>
		<link>http://blog.onthewings.net/2011/03/26/hxopenframeworks-is-now-on-haxelib/</link>
		<comments>http://blog.onthewings.net/2011/03/26/hxopenframeworks-is-now-on-haxelib/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 20:45:46 +0000</pubDate>
		<dc:creator>Andy Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[haXe]]></category>
		<category><![CDATA[OpenFrameworks]]></category>

		<guid isPermaLink="false">http://blog.onthewings.net/?p=976</guid>
		<description><![CDATA[Yup, it&#8217;s there. You can now grab hxOpenFrameworks via haxelib install hxOpenFrameworks. It is using a version of openFrameworks that is slightly more recent than 0.062(current latest release). All Windows/Mac/Linux is supported (only 32bit though). For those haven&#8217;t tried haxe/cpp: Go install haxe. Install c++ development tools. Windows: Visual Studio (Express version is free) Mac: [...]]]></description>
			<content:encoded><![CDATA[<p>Yup, it&#8217;s there. You can now grab hxOpenFrameworks via <code>haxelib install hxOpenFrameworks</code>. It is using a version of openFrameworks that is slightly more recent than 0.062(current latest release). All Windows/Mac/Linux is supported (only 32bit though).</p>
<p>For those haven&#8217;t tried haxe/cpp:</p>
<ol>
<li>Go <a href="http://haxe.org/download">install haxe</a>.</li>
<li>Install c++ development tools.
<ul>
<li>Windows: Visual Studio (<a href="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express">Express</a> version is free)</li>
<li>Mac: XCode (in order to get GCC)</li>
<li>Linux: GCC (should be already there)</li>
</ul>
</li>
<li>Open up Terminal (Windows users please choose &#8220;Visual Studio Command Prompt&#8221; from start menu)
<ol>
<li><code>haxelib setup</code><br />
It is need for 1st time use of haxelib. Simply press enter to set to the default path.</li>
<li><code>haxelib install hxOpenFrameworks</code><br />
It will install hxOpenFrameworks as well as the dependencies (<a href="http://code.google.com/p/hxhsl/">HSL</a> and <a href="https://github.com/andyli/hxRtAudio">hxRtAudio</a>). Mac user should also install <a href="http://www.jackosx.com/">Jack OSX</a> manually.</li>
</ol>
</li>
<li>Browse to hxOpenFramework and try compiling the examples.
<ol>
<li>Windows: <code>cd C:\Motion-Twin\haxe\lib\hxOpenFrameworks\0,062,0</code><br />
Mac/Linux: <code>cd /usr/lib/haxe/lib/hxOpenFrameworks/0,062,0</code></li>
<li>Open <em>of/examples/Main.hx</em>(previously is in the root dir, see <a href="https://github.com/andyli/hxOpenFrameworks/issues/1">issue 1</a>) and uncomment one of the examples.</li>
<li><code>haxe compile-{your_platform}.hxml</code></li>
</ol>
</li>
</ol>
<p>Please refer to openFrameworks website for <a href="http://www.openframeworks.cc/documentation?adv=yes">API documentation</a>.
<div class="tweetmeme_button" style="margin: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F03%2F26%2Fhxopenframeworks-is-now-on-haxelib%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F03%2F26%2Fhxopenframeworks-is-now-on-haxelib%2F&amp;source=andy_li&amp;style=compact&amp;service=bit.ly&amp;service_api=andyli%3AR_620a3608de8b1566599766b2ea71c3ba&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
 <p><a href="http://blog.onthewings.net/?flattrss_redirect&amp;id=976&amp;md5=8194c5e1fba6e08896bdcc970ce342d6" title="Flattr" target="_blank"><img src="http://blog.onthewings.net/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.onthewings.net/2011/03/26/hxopenframeworks-is-now-on-haxelib/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<atom:link rel="payment" href="http://blog.onthewings.net/?flattrss_redirect&amp;id=976&amp;md5=8194c5e1fba6e08896bdcc970ce342d6" type="text/html" />"
	</item>
		<item>
		<title>Creating generative art in haXe and OpenFrameworks (Feb 2011)</title>
		<link>http://blog.onthewings.net/2011/02/22/creating-generative-art-in-haxe-and-openframeworks-feb-2011/</link>
		<comments>http://blog.onthewings.net/2011/02/22/creating-generative-art-in-haxe-and-openframeworks-feb-2011/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 05:47:56 +0000</pubDate>
		<dc:creator>Andy Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[haXe]]></category>
		<category><![CDATA[OpenFrameworks]]></category>

		<guid isPermaLink="false">http://blog.onthewings.net/?p=954</guid>
		<description><![CDATA[I continue the journey of creating a piece of generative art everyday. And I am still using hxOpenFrameworks. BTW, since I don&#8217;t have a Mac running at this moment, I can&#8217;t have a Mac build. And actually I&#8217;m still messing with the Linux build&#8230; So hxOpenFrameworks is currently Windows only. I will release it to [...]]]></description>
			<content:encoded><![CDATA[<p>I continue the journey of creating a piece of generative art everyday. And I am still using hxOpenFrameworks. BTW, since I don&#8217;t have a Mac running at this moment, I can&#8217;t have a Mac build. And actually I&#8217;m still messing with the Linux build&#8230; So hxOpenFrameworks is currently Windows only. I will release it to haxelib once it is cross-platform.</p>
<p>Anyway, here below are the selected pieces from <a href="http://www.flickr.com/photos/andy-li/sets/72157625719497466/">my set of creations</a>.</p>
<p>After <a href="http://blog.onthewings.net/2011/01/15/creating-generative-art-in-haxe-and-openframeworks/">last time</a> I discovered the beauty of physics, I went with some typical simulations&#8230;shooting bullets.<br />
It is not in real-time, but a frame-by-frame rendering. It would be nice if there is a haXe binding to PhysX or something.<br />
<p><a href="http://blog.onthewings.net/2011/02/22/creating-generative-art-in-haxe-and-openframeworks-feb-2011/"><em>Click here to view the embedded video.</em></a></p></p>
<p>Following is simply putting some circles from inside of a grid of sands. Look pretty like corruption.<br />
<p><a href="http://blog.onthewings.net/2011/02/22/creating-generative-art-in-haxe-and-openframeworks-feb-2011/"><em>Click here to view the embedded video.</em></a></p></p>
<p>And then there is a series of connecting points on a circle. It generates soooo many patterns with a single algorithm, I have to align the variations in a grid. Don&#8217;t draw them on a paper, it may summon a fire ball or something, don&#8217;t say I haven&#8217;t warned you <img src='http://blog.onthewings.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <br />
<a href="http://www.flickr.com/photos/andy-li/5392876583/" title="20110128_010311 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5095/5392876583_2fddd31f31_z.jpg" width="640" height="360" alt="20110128_010311" /></a><br />
<a href="http://www.flickr.com/photos/andy-li/5395438075/" title="20110129_003509 by on_the_wings, on Flickr"><img src="http://farm5.static.flickr.com/4143/5395438075_2ef5151ed9_z.jpg" width="640" height="360" alt="20110129_003509" /></a></p>
<p>Since I was leaking idea, so better do some old school recursive stuffs&#8230; Turn out applying color on them can give you nice harmonic color scheme, and the proportion is perfect!<br />
<a href="http://www.flickr.com/photos/andy-li/5404347295/" title="20110201_000052 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5058/5404347295_cb043c94c2_z.jpg" width="640" height="360" alt="20110201_000052" /></a></p>
<p>I like the following one very much. It first generates an array of points according to some regular polygon math, then sorts them according to the angle from origin and finally links them up.<br />
<a href="http://www.flickr.com/photos/andy-li/5422430502/" title="20110207_022130 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5094/5422430502_62d0a7c25a_z.jpg" width="640" height="640" alt="20110207_022130" /></a></p>
<p>Same as above, but reversed part of the math so the lines point outward.<br />
<a href="http://www.flickr.com/photos/andy-li/5424929079/" title="20110208_002628 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5293/5424929079_df75c29499_z.jpg" width="640" height="640" alt="20110208_002628" /></a></p>
<p>Still playing with the above idea, but applied lots of tweaks to bring the interesting parts out.<br />
<a href="http://www.flickr.com/photos/andy-li/5432228732/" title="20110210_064234 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5293/5432228732_31bd15b9f2_z.jpg" width="640" height="360" alt="20110210_064234" /></a></p>
<p>In the latest weeks, I have been trying to create more concrete graphics. It takes more time then messing around with math equations, but I have more artistic control. First one plays with circuit board like structures.<br />
<a href="http://www.flickr.com/photos/andy-li/5449289011/" title="20110216_103158 by on_the_wings, on Flickr"><img src="http://farm5.static.flickr.com/4143/5449289011_68e4a48630_z.jpg" width="640" height="640" alt="20110216_103158" /></a></p>
<p>Applying Tron-style color.<br />
<a href="http://www.flickr.com/photos/andy-li/5451692325/" title="20110217_080342 by on_the_wings, on Flickr"><img src="http://farm5.static.flickr.com/4079/5451692325_6085017ace_z.jpg" width="640" height="640" alt="20110217_080342" /></a></p>
<p>Second concrete thing I created is a feather, as I really like birds. I used the easing equations(which are usually used for tweening) by Robert Penner to create the curves.<br />
<a href="http://www.flickr.com/photos/andy-li/5460742746/" title="20110220_135143 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5138/5460742746_31c8679acd_z.jpg" width="640" height="640" alt="20110220_135143" /></a></p>
<p>Creating a pair of wings is easy when you have feathers.<br />
<a href="http://www.flickr.com/photos/andy-li/5464404367/" title="20110221_213250 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5216/5464404367_5b8fee80fe_z.jpg" width="640" height="360" alt="20110221_213250" /></a></p>
<p>And finally, why not have 3 pairs when you simply can? Here comes a seraph.<br />
<a href="http://www.flickr.com/photos/andy-li/5465128457/" title="20110222_020632 by on_the_wings, on Flickr"><img src="http://farm6.static.flickr.com/5016/5465128457_e12944b761_z.jpg" width="640" height="360" alt="20110222_020632" /></a>
<div class="tweetmeme_button" style="margin: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F02%2F22%2Fcreating-generative-art-in-haxe-and-openframeworks-feb-2011%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F02%2F22%2Fcreating-generative-art-in-haxe-and-openframeworks-feb-2011%2F&amp;source=andy_li&amp;style=compact&amp;service=bit.ly&amp;service_api=andyli%3AR_620a3608de8b1566599766b2ea71c3ba&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
 <p><a href="http://blog.onthewings.net/?flattrss_redirect&amp;id=954&amp;md5=d597f3635ceb3493f1470c1ee0220d0c" title="Flattr" target="_blank"><img src="http://blog.onthewings.net/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.onthewings.net/2011/02/22/creating-generative-art-in-haxe-and-openframeworks-feb-2011/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<atom:link rel="payment" href="http://blog.onthewings.net/?flattrss_redirect&amp;id=954&amp;md5=d597f3635ceb3493f1470c1ee0220d0c" type="text/html" />"
	</item>
		<item>
		<title>Creating generative art in haXe and OpenFrameworks</title>
		<link>http://blog.onthewings.net/2011/01/15/creating-generative-art-in-haxe-and-openframeworks/</link>
		<comments>http://blog.onthewings.net/2011/01/15/creating-generative-art-in-haxe-and-openframeworks/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 13:17:17 +0000</pubDate>
		<dc:creator>Andy Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[haXe]]></category>
		<category><![CDATA[OpenFrameworks]]></category>

		<guid isPermaLink="false">http://blog.onthewings.net/?p=926</guid>
		<description><![CDATA[It has been some time since the start of building hxOpenFrameworks, the haXe binding to OpenFrameworks. Actually it is already around 80% complete several weeks ago. I was facing some GC problem on the use of ofSoundStream, but finally I&#8217;ve solved it with the help of Hugh. As a by-product, I&#8217;ve made a binding to [...]]]></description>
			<content:encoded><![CDATA[<p>It has been some time since the start of building <a href="https://github.com/andyli/hxOpenFrameworks">hxOpenFrameworks</a>, the haXe binding to <a href="http://www.openframeworks.cc/">OpenFrameworks</a>. Actually it is already around 80% complete several weeks ago. I was facing some GC problem on the use of ofSoundStream, but finally I&#8217;ve solved it with the help of <a href="http://gamehaxe.com/">Hugh</a>. As a by-product, I&#8217;ve made a <a href="https://github.com/andyli/hxRtAudio">binding</a> to <a href="http://www.music.mcgill.ca/~gary/rtaudio/">RtAudio</a>, a cross-platform real-time sound input/output API. However, I think I will wait till OF 007 and haXe 2.07 is released before really releasing hxOpenFrameworks.</p>
<p>In order to test it, I&#8217;ve been using it for some little projects. I decided to create (at least) one piece of generative art everyday&#8230; right, everyday starting from the 1st day of 2011. Quite similar to what <a href="http://www.bit-101.com/">Keith Peters</a> did some time ago (<a href="http://www.artfromcode.com/">art from code</a>). The process is pretty fun once I had got used to start my day by coding some art.</p>
<p>Accidentally I found <a href="http://www.openframeworks.cc/documentation?adv=yes&amp;detail=ofGraphics#ofSetCircleResolution">setCircleResolution</a> a very interesting function to play with. It controls how a circle is approximated by drawing regular polygons. Below is circles with radius increasing and resolution(number of sides of regular polygon) decreasing.<br />
<a title="20110103_082211 by on_the_wings, on Flickr" href="http://www.flickr.com/photos/andy-li/5317588347/"><img src="http://farm6.static.flickr.com/5288/5317588347_60bfc2a2b2_z.jpg" alt="20110103_082211" width="640" height="400" /></a></p>
<p>Sometimes the generating process is even more amazing than the final image.<br />
<p><a href="http://blog.onthewings.net/2011/01/15/creating-generative-art-in-haxe-and-openframeworks/"><em>Click here to view the embedded video.</em></a></p></p>
<p>sin/cos/tan are also interesting functions that often give you unexpected results. Below is a combination of sin and tan.<br />
<a title="20110109_094501 by on_the_wings, on Flickr" href="http://www.flickr.com/photos/andy-li/5337817974/"><img src="http://farm6.static.flickr.com/5002/5337817974_e87266d476_z.jpg" alt="20110109_094501" width="640" height="400" /></a></p>
<p>Writing recursive/iterative code is the easiest way to produce complex graphics with few lines of code. Spiral forms are particularly attractive, as there is a point of focus.<br />
<a title="20110106_202323 by on_the_wings, on Flickr" href="http://www.flickr.com/photos/andy-li/5329507945/"><img src="http://farm6.static.flickr.com/5123/5329507945_b913c0c927_z.jpg" alt="20110106_202323" width="640" height="400" /></a></p>
<p>With some modifications, it looks like some kind of rose.<br />
<a title="20110107_080604 by on_the_wings, on Flickr" href="http://www.flickr.com/photos/andy-li/5331141541/"><img src="http://farm6.static.flickr.com/5283/5331141541_6c43b73f2d_z.jpg" alt="20110107_080604" width="640" height="400" /></a></p>
<p>Below is my favorite piece at the moment. I used <a href="http://code.google.com/p/physaxe/">physaxe</a> for physics simulation. Thousands of particles(in fact, tiny circles) are shot from outside of the canvas, producing trails of blue. When they collides, some red will be drawn, which look like sparks. The generating process is recorded, you can find it on <a href="http://www.youtube.com/watch?v=Wxr8BUSAPR8">youtube</a>.<br />
<a title="20110113_2000 by on_the_wings, on Flickr" href="http://www.flickr.com/photos/andy-li/5351310168/"><img src="http://farm6.static.flickr.com/5170/5351310168_eda6b6235f_z.jpg" alt="20110113_2000" width="640" height="400" /></a></p>
<p>Finally, all the codes of the above pieces are open source, can be found in the description of individual flickr/youtube page. I&#8217;ll post some more interesting ones next month.</p>
<p>PS. Nicolas Barradeau is producing <a href="http://en.nicoptere.net/?tag=generative-art">a series of basics in generative art</a> in his <a href="http://en.nicoptere.net/">blog</a>, which contains a lot of useful codes in AS3. Be sure to check it out if you&#8217;re interested in generating some art!
<div class="tweetmeme_button" style="margin: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F01%2F15%2Fcreating-generative-art-in-haxe-and-openframeworks%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.onthewings.net%2F2011%2F01%2F15%2Fcreating-generative-art-in-haxe-and-openframeworks%2F&amp;source=andy_li&amp;style=compact&amp;service=bit.ly&amp;service_api=andyli%3AR_620a3608de8b1566599766b2ea71c3ba&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
 <p><a href="http://blog.onthewings.net/?flattrss_redirect&amp;id=926&amp;md5=5b9c246d8e64c96f1df403356d756fa8" title="Flattr" target="_blank"><img src="http://blog.onthewings.net/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.onthewings.net/2011/01/15/creating-generative-art-in-haxe-and-openframeworks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<atom:link rel="payment" href="http://blog.onthewings.net/?flattrss_redirect&amp;id=926&amp;md5=5b9c246d8e64c96f1df403356d756fa8" type="text/html" />"
	</item>
	</channel>
</rss>

