<?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>Patrick Matte &#187; TBWA\Chiat\Day Los Angeles</title>
	<atom:link href="http://www.patrickmatte.com/index.php/category/chiat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.patrickmatte.com</link>
	<description>Flash programming, animation and design.</description>
	<lastBuildDate>Fri, 20 Aug 2010 00:41:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Some generative art for our &#8220;25 lines of code&#8221; contest at TBWA\Chiat\Day. I won at unanimity!</title>
		<link>http://www.patrickmatte.com/index.php/2009/07/25/i-won-the-25-lines-of-code-contest/</link>
		<comments>http://www.patrickmatte.com/index.php/2009/07/25/i-won-the-25-lines-of-code-contest/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 02:44:35 +0000</pubDate>
		<dc:creator>Patrick Matte</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Generative Art]]></category>
		<category><![CDATA[TBWA\Chiat\Day Los Angeles]]></category>
		<category><![CDATA[25 lines of code]]></category>
		<category><![CDATA[tracy lines]]></category>

		<guid isPermaLink="false">http://www.patrickmatte.com/?p=57</guid>
		<description><![CDATA[The rules of the contest were simple, create the most awesome program in just 25 lines of code. The timing was pefect for me as i wasn&#8217;t too busy for the last two days before the deadline and i was able to work on a few entries. This one nailed it. I&#8217;m still surprised how [...]]]></description>
			<content:encoded><![CDATA[<p>The rules of the contest were simple, create the most awesome program in just 25 lines of code. The timing was pefect for me as i wasn&#8217;t too busy for the last two days before the deadline and i was able to work on a few entries.</p>
<div class="wp-caption alignnone" style="width: 460px"><a href="http://www.patrickmatte.com/stuff/25lines/tornado6.swf" target="_blank"><img src="http://www.patrickmatte.com/stuff/25lines/images/tornado_1.jpg" alt="My 25 lines of code winning entry" /></a><p class="wp-caption-text">Click to open SWF</p></div>
<p>This one nailed it. I&#8217;m still surprised how many things i was able to cram into 25 lines! I have a 3D engine in there that converts 3D points to 2D points in 3 lines of code! And the routine also changes the color of the lines, records arrays of points to create the trails that gets thinner as time increases. Also notice the velocity on each point that make the trail move along.</p>
<p><a href="http://www.patrickmatte.com/stuff/25lines/tornado6.zip" target="_blank">Download source fla</a><br/></p>
<p>I&#8217;m definitely happy with the first one but there&#8217;s another entry that i did which i also like.</p>
<div class="wp-caption alignnone" style="width: 460px"><a href="http://www.patrickmatte.com/stuff/25lines/curve2.html" target="_blank"><img src="http://www.patrickmatte.com/stuff/25lines/images/space_1.jpg" alt="Another entry in the contest" /></a><p class="wp-caption-text">Click to open SWF</p></div>
<p>For that one I got the inspiration from a demo i saw last week, and i thought to myself, &#8220;hey i can do this in 25 lines of code&#8221; so i did it. Some images it creates look a lot like those spacy tracy desktop backgrounds of Windows Vista and OSX.</p>
<p><a href="http://www.patrickmatte.com/stuff/25lines/curve2.zip" target="_blank">Download source fla</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickmatte.com/index.php/2009/07/25/i-won-the-25-lines-of-code-contest/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Simulating liquid with actionscript 3 and physics engine APE.</title>
		<link>http://www.patrickmatte.com/index.php/2009/06/16/simulating-liquid-with-a-physics-engine-in-actionscript-3/</link>
		<comments>http://www.patrickmatte.com/index.php/2009/06/16/simulating-liquid-with-a-physics-engine-in-actionscript-3/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 07:08:00 +0000</pubDate>
		<dc:creator>Patrick Matte</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[TBWA\Chiat\Day Los Angeles]]></category>
		<category><![CDATA[Fluid]]></category>
		<category><![CDATA[Liquid]]></category>

		<guid isPermaLink="false">http://www.patrickmatte.com/?p=29</guid>
		<description><![CDATA[I created a quick prototype of a realtime liquid simulation for a project over at Chiat a couple weeks ago. The result might not be very realistic, a little cartoony you might say, but it&#8217;s definitely fun to play with (any program that features real-time physics just fascinates me). I made a quick demo to [...]]]></description>
			<content:encoded><![CDATA[<p>I created a quick prototype of a realtime liquid simulation for a project over at Chiat a couple weeks ago. The result might not be very realistic, a little cartoony you might say, but it&#8217;s definitely fun to play with (any program that features real-time physics just fascinates me). I made a quick demo to show you how it&#8217;s done.</p>
<p/>
<div class="wp-caption alignnone" style="width: 460px"><a href="http://www.patrickmatte.com/stuff/physicsLiquid/" target="_blank" title="Clickto open SWF"><img src="http://www.patrickmatte.com/stuff/physicsLiquid/image.jpg" alt="Click to open SWF" /></a><p class="wp-caption-text">Click to open SWF</p></div></p>
<p/>
I quickly looked at some <a href="http://geekglue.blogspot.com/2008/01/actionscript-2d-physics-engines.html" target="_blank">reviews</a> to make my choice on the physics engine i would use and <a href="http://www.cove.org/ape/" target="_blank">APE</a> seemed to be the simplest one. It was pretty simple indeed as i was able to put up my original demo in a single day. It was a little tricky to create the physics bottle that would hold the particles. The easiest way i found was to put movieclips on stage in the shape of the bottle and loop through each pieces and create a corresponding APE RectangleParticule. The tricky part is that when you rotate a movieclip in flash, the height and width of the clip changes, so i had to nest a movieclip within to be able to read the correct height and width of the particle.</p>
<p/>
<a href="http://www.patrickmatte.com/stuff/physicsLiquid/flash.zip">Download the source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickmatte.com/index.php/2009/06/16/simulating-liquid-with-a-physics-engine-in-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
