<?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>lab.joelGillman.com &#187; processing</title>
	<atom:link href="http://lab.joelgillman.com/archives/tag/processing/feed" rel="self" type="application/rss+xml" />
	<link>http://lab.joelgillman.com</link>
	<description>Sketches, Code Bites and Toys</description>
	<lastBuildDate>Tue, 12 Jul 2011 15:03:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Pseudo Work (fwork)</title>
		<link>http://lab.joelgillman.com/archives/159_pseudo-work</link>
		<comments>http://lab.joelgillman.com/archives/159_pseudo-work#comments</comments>
		<pubDate>Thu, 05 Nov 2009 22:16:30 +0000</pubDate>
		<dc:creator>joel gillman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://lab.joelgillman.com/?p=159</guid>
		<description><![CDATA[This script takes a text file (any text file should) and displays it one line at a time with short delays in between. In other words, you can run this script to make it look like your computer is actually doing something worthwhile. I had searched around the internet a few times but never really [...]]]></description>
			<content:encoded><![CDATA[<p>This script takes a text file (any text file should) and displays it one line at a time with short delays in between.  In other words, you can run this script to make it <em>look</em> like your computer is actually doing something worthwhile.</p>
<p>I had searched around the internet a few times but never really found anything like this, but that doesn&#8217;t mean it doesn&#8217;t look.  Maybe I&#8217;m just a bad internet searcher.  <a href="http://lab.joelgillman.com/archives/159_pseudo-work">Script after the jump</a>. <span id="more-159"></span></p>
<p><br/></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<br />
<span style="color: #666666; font-style: italic;">#####################################################</span><br />
<span style="color: #666666; font-style: italic;"># Pseudo Work (fwork) Script - by Joel Gillman 2009</span><br />
<span style="color: #666666; font-style: italic;"># lab.joelgillman.com/archives/159_pseudo-work</span><br />
<span style="color: #666666; font-style: italic;"># </span><br />
<span style="color: #666666; font-style: italic;"># Please feel free to edit and change this as you</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp;like! If &nbsp;you do make any edits I would be curious</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp;to see what you've done so drop me a line!</span><br />
<span style="color: #666666; font-style: italic;"># </span><br />
<span style="color: #666666; font-style: italic;"># DISCLAIMER</span><br />
<span style="color: #666666; font-style: italic;"># I am in no way a bash scripting expert. Most of what</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp;I write is copy and paste and trial and error.</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp;While this script shouldn't hurt anything in your</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp;system don't hold me responsible if it does! Use</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp;at your own risk.</span><br />
<span style="color: #666666; font-style: italic;">#####################################################</span><br />
<br />
<br />
<span style="color: #666666; font-style: italic;">## test if file (default or otherwise)</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> = <span style="color: #ff0000;">''</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #007800;">filename</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/garbage.txt&quot;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$filename</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">0</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;No file specified and default file '~/garbage.txt' not found.&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #007800;">filename</span>=<span style="color: #007800;">$1</span><br />
<span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;No file found at $1&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #666666; font-style: italic;">## execute fakeness</span><br />
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> p; <span style="color: #000000; font-weight: bold;">do</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(($RANDOM % 10)</span>)&quot;</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #ff0000;">&quot;R1 = (<span style="color: #007800;">$RANDOM</span> % 2)&quot;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(($RANDOM % 50)</span>)&quot;</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #ff0000;">&quot;R1 = (<span style="color: #007800;">$RANDOM</span> % 20)&quot;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #ff0000;">&quot;R1 = 0&quot;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">fi</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #ff0000;">&quot;R2 = (<span style="color: #007800;">$RANDOM</span> % 10)&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$p</span><br />
&nbsp; &nbsp; <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #007800;">$R1</span>.<span style="color: #007800;">$R2</span><br />
<span style="color: #000000; font-weight: bold;">done</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #007800;">$filename</span></div></div>
<p><a href="http://lab.joelgillman.com/thepress/wp-content/uploads/2009/11/fwork.zip">Download a zip&#8217;d version of the script</a>.<br />
You can <a href="http://lab.joelgillman.com/thepress/wp-content/uploads/2009/11/garbage.txt">download the (2.5MB) text file</a> I&#8217;ve been using.</p>
<p>Let me know what you think!  Any improvements or suggestions would be greatly appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.joelgillman.com/archives/159_pseudo-work/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Map Function</title>
		<link>http://lab.joelgillman.com/archives/87_map-function</link>
		<comments>http://lab.joelgillman.com/archives/87_map-function#comments</comments>
		<pubDate>Mon, 29 Sep 2008 22:39:41 +0000</pubDate>
		<dc:creator>joel gillman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[normalize]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://lab.joelgillman.com/?p=87</guid>
		<description><![CDATA[If you&#8217;ve ever used Processing you&#8217;ve probably used the &#8216;map&#8217; function. From the Processing Reference section it reads: &#8220;Re-maps a number from one range to another.&#8221; Unfortunately the function doesn&#8217;t exist in Flash, so I rewrote it. Why is this function useful? Lets say your mouse can move within the bounds of your stage from [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever used <a href="http://www.processing.org/">Processing</a> you&#8217;ve probably used the &#8216;map&#8217; function.  From the Processing Reference section it <a href="http://processing.org/reference/map_.html">reads</a>: &#8220;Re-maps a number from one range to another.&#8221;</p>
<p><span id="more-87"></span>Unfortunately the function doesn&#8217;t exist in Flash, so I rewrote it.  Why is this function useful?  Lets say your mouse can move within the bounds of your stage from 0 to 550 pixels along its x-axis.  You want a box to move back and forth from 100 to 200 pixels according to the position of the mouse.  So when your mouse is halfway across the stage your box should be halfway between 100 and 200 pixels.  You would simply use:</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">myBox<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #004993;">map</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">mouseX</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">550</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></div></div>
<p>Easy as that!</p>
<p>Usage:<br />
map(value, low1, high1, low2, high2);<br />
<em>low2 and high2 default to 0 and 1, respectively so you don&#8217;t have to put them in if you just want to normalize your value.</em></p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">map</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;low1<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;high1<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;low2<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;high2<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//if the value and the 1st range low are equal to</span><br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// the new value must be low2</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span> == low1<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span> low2<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//normalize both sets to a 0-? range</span><br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> range1 = high1 <span style="color: #000066; font-weight: bold;">-</span> low1<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> range2 = high2 <span style="color: #000066; font-weight: bold;">-</span> low2<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//normalize the value to the new normalized range</span><br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> result = <span style="color: #004993;">value</span> <span style="color: #000066; font-weight: bold;">-</span> low1<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//define the range as a percentage (0.0 to 1.0)</span><br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> ratio = result <span style="color: #000066; font-weight: bold;">/</span> range1<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//find the value in the new normalized-range</span><br />
&nbsp; &nbsp; result = ratio <span style="color: #000066; font-weight: bold;">*</span> range2<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//un-normalize the value in the new range</span><br />
&nbsp; &nbsp; result <span style="color: #000066; font-weight: bold;">+</span>= low2<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span> result<span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #000000;">&#125;</span></div></div>
<p>And super compressed (less readable, less space, works the same):</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">map</span><span style="color: #000000;">&#40;</span>v<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">,</span> a<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">b</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">y</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span> <span style="color: #000000;">&#40;</span>v == a<span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">?</span> <span style="color: #004993;">x</span> <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #000000;">&#40;</span>v <span style="color: #000066; font-weight: bold;">-</span> a<span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">y</span> <span style="color: #000066; font-weight: bold;">-</span> <span style="color: #004993;">x</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">/</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">b</span> <span style="color: #000066; font-weight: bold;">-</span> a<span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #000000;">&#125;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://lab.joelgillman.com/archives/87_map-function/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Emitters</title>
		<link>http://lab.joelgillman.com/archives/28_emitters</link>
		<comments>http://lab.joelgillman.com/archives/28_emitters#comments</comments>
		<pubDate>Fri, 07 Mar 2008 07:48:49 +0000</pubDate>
		<dc:creator>joel gillman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[emitter]]></category>
		<category><![CDATA[particles]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[star field]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Vimeo]]></category>

		<guid isPermaLink="false">http://lab.joelgillman.com/archives/28_emitters</guid>
		<description><![CDATA[For a project I needed to learn how to make an emitter (for particles). Specifically and emitter object that can be called several times so that there can be several unique emitters. I have made something similar before but it works more efficiently now. Videos only. Mouse Emitter from Joel Gillman on Vimeo. Emitter &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>For a project I needed to learn how to make an emitter (for particles).  Specifically and emitter object that can be called several times so that there can be several unique emitters.  I have made <a href="http://lab.joelgillman.com/archives/15_spawn-object">something</a> similar before but it works more efficiently now.  Videos only.<span id="more-28"></span></p>
<p><object type="application/x-shockwave-flash" width="500" height="333" data="http://www.vimeo.com/moogaloop.swf?clip_id=755681&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ff333d"><param name="quality" value="best" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=755681&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ff333d" /></object><br /><a href="http://www.vimeo.com/755681/l:embed_755681">Mouse Emitter</a> from <a href="http://www.vimeo.com/jgillman/l:embed_755681">Joel Gillman</a> on <a href="http://vimeo.com/l:embed_755681">Vimeo</a>.</p>
<p><object type="application/x-shockwave-flash" width="500" height="333" data="http://www.vimeo.com/moogaloop.swf?clip_id=760824&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ff333d"><param name="quality" value="best" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=760824&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=ff333d" /></object><br /><a href="http://www.vimeo.com/760824/l:embed_760824">Emitter &#8211; Star Field</a> from <a href="http://www.vimeo.com/jgillman/l:embed_760824">Joel Gillman</a> on <a href="http://vimeo.com/l:embed_760824">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.joelgillman.com/archives/28_emitters/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Chess Clock</title>
		<link>http://lab.joelgillman.com/archives/27_chess-clock</link>
		<comments>http://lab.joelgillman.com/archives/27_chess-clock#comments</comments>
		<pubDate>Sun, 02 Mar 2008 21:43:28 +0000</pubDate>
		<dc:creator>joel gillman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Chess]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[modes]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[program]]></category>

		<guid isPermaLink="false">http://lab.joelgillman.com/archives/27_chess-clock</guid>
		<description><![CDATA[A friend and I have been playing Chess recently (neither of us are very good) and we decided we could use a chess clock to make the games faster and more stressful. We decided to make a game of it and see who could program a rudimentary (but working) chess clock. Here&#8217;s mine. 10 minutes [...]]]></description>
			<content:encoded><![CDATA[<p>A friend and I have been playing Chess recently (neither of us are very good) and we decided we could use a chess clock to make the games faster and more stressful.  We decided to make a game of it and see who could program a rudimentary (but working) chess clock.  Here&#8217;s mine.<span id="more-27"></span></p>
<p><em>10 minutes per player is the default.<br />
&#8216;r&#8217; to reset<br />
&#8216;space&#8217; to switch players<br />
&#8216;p&#8217; to pause</em><br />
<applet class="span-12" code="ClockCounter" archive="http://lab.joelgillman.com/thepress/wp-content/uploads/2008/03/clockcounter.jar" width="400" height="200"></applet></p>
<p><a href="http://lab.joelgillman.com/thepress/wp-content/uploads/2008/03/clockcounter.pde">Source 1</a> <a href="http://lab.joelgillman.com/thepress/wp-content/uploads/2008/03/draw_clock.pde">2</a> and <a href="http://lab.joelgillman.com/thepress/wp-content/uploads/2008/03/chess_keyboard.pde">3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.joelgillman.com/archives/27_chess-clock/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Circle Crawlers</title>
		<link>http://lab.joelgillman.com/archives/19_circle-crawlers</link>
		<comments>http://lab.joelgillman.com/archives/19_circle-crawlers#comments</comments>
		<pubDate>Fri, 08 Feb 2008 22:59:43 +0000</pubDate>
		<dc:creator>joel gillman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[object oriented]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://lab.joelgillman.com/archives/19_circle-crawlers</guid>
		<description><![CDATA[Circle Crawlers spawns a large number of &#8216;crawlers&#8217; and a smaller number of &#8216;anomalies&#8217; who each crawl around the screen randomly. The large anomalies move slow and thus never get too far away from the center. The smaller crawlers can move faster and can break away from the center but always die before they get [...]]]></description>
			<content:encoded><![CDATA[<p>Circle Crawlers spawns a large number of &#8216;crawlers&#8217; and a smaller number of &#8216;anomalies&#8217; who each crawl around the screen randomly.  The large anomalies move slow and thus never get too far away from the center.  The smaller crawlers can move faster and can break away from the center but always die before they get too far out from their point of origin.<span id="more-19"></span></p>
<p><em>Press &#8216;r&#8217; to reset.</em><br />
<applet class="span-12" code="crawler03" archive="http://lab.joelgillman.com/thepress/wp-content/uploads/2008/02/cirlclecrawlers.jar" width="470" height="470"></applet></p>
<p><a href="http://lab.joelgillman.com/thepress/wp-content/uploads/2008/02/cirlclecrawlers.pde">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.joelgillman.com/archives/19_circle-crawlers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spawn Object</title>
		<link>http://lab.joelgillman.com/archives/15_spawn-object</link>
		<comments>http://lab.joelgillman.com/archives/15_spawn-object#comments</comments>
		<pubDate>Wed, 30 Jan 2008 06:06:07 +0000</pubDate>
		<dc:creator>joel gillman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[modes]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://lab.joelgillman.com/archives/15_spawn-object</guid>
		<description><![CDATA[I was learning how to properly use objects and classes. Here there is a base class &#8220;Bug&#8221; and a class to extend it called &#8220;Crawler.&#8221; Class Bug is never directly called, I had planned on using it in the future, but never did. Also, I figured out how to use fonts for text in Processing. [...]]]></description>
			<content:encoded><![CDATA[<p>I was learning how to properly use objects and classes.  Here there is a base class &#8220;Bug&#8221; and a class to extend it called &#8220;Crawler.&#8221;  Class Bug is never directly called, I had planned on using it in the future, but never did.  Also, I figured out how to use fonts for text in Processing.<span id="more-15"></span><br />
<applet class="span-12" code="spawn_object3" archive="/thepress/wp-content/uploads/2008/01/spawn_object3.jar" width="470" height="470"></applet></p>
<p><a href="/thepress/wp-content/uploads/2008/01/spawn_object3.pde">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.joelgillman.com/archives/15_spawn-object/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Playground</title>
		<link>http://lab.joelgillman.com/archives/12_playground</link>
		<comments>http://lab.joelgillman.com/archives/12_playground#comments</comments>
		<pubDate>Fri, 25 Jan 2008 22:10:48 +0000</pubDate>
		<dc:creator>joel gillman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://lab.joelgillman.com/archives/12_playground</guid>
		<description><![CDATA[A simple Processing program where a bunch of circles are drawn around the mouse. Source]]></description>
			<content:encoded><![CDATA[<p>A simple Processing program where a bunch of circles are drawn around the mouse.<span id="more-12"></span><br />
<applet class="span-12" code="playground" archive="http://lab.joelgillman.com/thepress/wp-content/uploads/2008/01/playgrounder.jar" width="470" height="470"></applet></p>
<p><a href="http://lab.joelgillman.com/thepress/wp-content/uploads/2008/01/playground.pde">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.joelgillman.com/archives/12_playground/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

