<?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>noio</title>
	<atom:link href="http://www.noio.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.noio.nl</link>
	<description>Online graphic design, flash and web development portfolio of Thomas van den Berg.</description>
	<lastBuildDate>Sun, 26 Feb 2012 15:56:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Marceline Wallpaper</title>
		<link>http://www.noio.nl/2012/01/marceline-wallpaper/</link>
		<comments>http://www.noio.nl/2012/01/marceline-wallpaper/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 21:01:58 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[illustration]]></category>
		<category><![CDATA[wallpaper]]></category>

		<guid isPermaLink="false">http://www.noio.nl/?p=559</guid>
		<description><![CDATA[This is a desktop wallpaper featuring Marceline the Vampire Queen from Adventure Time. I&#8217;m not claiming any originality here, all I did was take a frame from Episode 201: &#8220;It Came from the Nightosphere&#8221; and trace it to make it suitable for a high-res monitor. Adventure Time is owned by Cartoon Network. Click the image [...]]]></description>
			<content:encoded><![CDATA[<div class="showcase">
<ul>
<li>
<a href="http://www.noio.nl/wordpress/wp-content/uploads/marceline-wallpaper/marceline_1920x1080.png"><img src="http://www.noio.nl/wordpress/wp-content/uploads/marceline-wallpaper/marceline_1920x1080-800x450.png" alt="" title="marceline_1920x1080" width="800" height="450" class="aligncenter size-large wp-image-564" /></a>
</li>
</ul>
</div>
<p>This is a desktop wallpaper featuring Marceline the Vampire Queen from Adventure Time. I&#8217;m not claiming any originality here, all I did was take a frame from <em>Episode 201: &#8220;It Came from the Nightosphere&#8221;</em> and trace it to make it suitable for a high-res monitor. Adventure Time is owned by <a href="http://www.cartoonnetwork.com/tv_shows/adventuretime/index.html" title="Cartoon Network">Cartoon Network</a>. Click the image for 1920&#215;1080, if you want a different size or background color, leave a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noio.nl/2012/01/marceline-wallpaper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Untitled Wallpaper</title>
		<link>http://www.noio.nl/2011/11/untitled-wallpaper/</link>
		<comments>http://www.noio.nl/2011/11/untitled-wallpaper/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 14:37:18 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[wallpaper]]></category>

		<guid isPermaLink="false">http://www.noio.nl/?p=545</guid>
		<description><![CDATA[I usually don&#8217;t upload photos or wallpapers, but here you go. I just made the 1440&#215;900 version for my MacBook, but leave a comment if you&#8217;d like to have another size.]]></description>
			<content:encoded><![CDATA[<div class="showcase">
<ul>
<li>
<img src="http://www.noio.nl/wordpress/wp-content/uploads/untitled-wallpaper/mist-op-het-ij-800x500.png" alt="" title="mist op het ij" width="800" height="500" class="aligncenter size-large wp-image-547" />
</li>
</ul>
</div>
<p>I usually don&#8217;t upload photos or wallpapers, but here you go. I just made <a href="http://www.noio.nl/wordpress/wp-content/uploads/untitled-wallpaper/mist-op-het-ij.png" title="grab the wallpaper" target="_blank">the 1440&#215;900 version </a>for my MacBook, but leave a comment if you&#8217;d like to have another size.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noio.nl/2011/11/untitled-wallpaper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pixen Icon</title>
		<link>http://www.noio.nl/2011/10/pixen-icon/</link>
		<comments>http://www.noio.nl/2011/10/pixen-icon/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 19:27:36 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[portfolio]]></category>

		<guid isPermaLink="false">http://www.noio.nl/?p=528</guid>
		<description><![CDATA[Made this icon for the only decent pixel editor on Mac OS X: Pixen.]]></description>
			<content:encoded><![CDATA[<div class="showcase">
<ul>
<li><img src="http://www.noio.nl/wordpress/wp-content/uploads/pixen-icon/showcase3.png" alt="" title="Pixen Icons" width="855" height="430" class="aligncenter size-full wp-image-578" /></li>
<li><img src="http://www.noio.nl/wordpress/wp-content/uploads/pixen-icon/about.png" alt="" title="Pixen Help Screen" width="608" height="393" class="aligncenter size-full wp-image-580" /></li>
</ul>
</div>
<p>Made this icon for the only decent pixel editor on Mac OS X: <a href="https://github.com/philippec/Pixen" title="Pixen">Pixen</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noio.nl/2011/10/pixen-icon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The End of a Day</title>
		<link>http://www.noio.nl/2011/06/the-end-of-a-day/</link>
		<comments>http://www.noio.nl/2011/06/the-end-of-a-day/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 21:27:18 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[illustration]]></category>
		<category><![CDATA[portfolio]]></category>

		<guid isPermaLink="false">http://www.noio.nl/?p=522</guid>
		<description><![CDATA[I was thinking of moving some of the stuff I&#8217;ve posted up on my deviantArt account to this website, because I might have outgrown dA a little bit heh. So here is the first. I&#8217;ve never spent so much time in Illustrator as I did on this one, but I&#8217;m surprised that it worked. It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<div class="showcase">
<ul>
<li><img src="http://www.noio.nl/wordpress/wp-content/uploads/the-end-of-a-day/submit-455x600.png" alt="" title="The End of a Day" width="455" height="600" class="aligncenter size-large wp-image-523" /></li>
</ul>
</div>
<p>I was thinking of moving some of the stuff I&#8217;ve posted up on my deviantArt account to this website, because I might have outgrown dA a little bit heh. So here is the first. I&#8217;ve never spent so much time in Illustrator as I did on this one, but I&#8217;m surprised that it worked. It&#8217;s titled &ldquo;The End of a Day&rdquo;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noio.nl/2011/06/the-end-of-a-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vimeo Account and More</title>
		<link>http://www.noio.nl/2011/05/vimeo-account/</link>
		<comments>http://www.noio.nl/2011/05/vimeo-account/#comments</comments>
		<pubDate>Sun, 29 May 2011 16:50:00 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[pixelart]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.noio.nl/?p=488</guid>
		<description><![CDATA[Some timelapse screencasts of me pixelarting backgrounds for a game.]]></description>
			<content:encoded><![CDATA[<p>So I created a Vimeo account and I wanted to show off some of my progress in pixelarting backgrounds for a game I&#8217;m working on. Enjoy!</p>
<p><center><iframe class="iframe-class" width="700" height="394" src="http://player.vimeo.com/video/24090508?portrait=0" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" allowtransparency="true"></iframe></center></p>
<p>And another one.</p>
<p><center><iframe class="iframe-class" width="700" height="394" src="http://player.vimeo.com/video/24357697?portrait=0" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" allowtransparency="true"></iframe></center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.noio.nl/2011/05/vimeo-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cardbox Design</title>
		<link>http://www.noio.nl/2011/03/cardbox-design/</link>
		<comments>http://www.noio.nl/2011/03/cardbox-design/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 10:50:36 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[portfolio]]></category>

		<guid isPermaLink="false">http://www.noio.nl/?p=455</guid>
		<description><![CDATA[Some shots of a (language) learning website I&#8217;m developing. I&#8217;m about to make the interaction a lot simpler, but I wanted to show of the old design first.]]></description>
			<content:encoded><![CDATA[<div class="showcase">
<ul>
<li><img src="http://www.noio.nl/wordpress/wp-content/uploads/cardbox-design/cardbox-help-772x600.png" alt="" title="cardbox help" width="787" height="600" class="alignnone size-medium" /></li>
<li><img src="http://www.noio.nl/wordpress/wp-content/uploads/cardbox-design/cardbox-stats-772x600.png" alt="" title="cardbox stats" width="787" height="600" class="alignnone size-medium" /></li>
<li><img src="http://www.noio.nl/wordpress/wp-content/uploads/cardbox-design/cardbox-home-772x600.png" alt="" title="cardbox home" width="787" height="600" class="alignnone size-medium" /></li>
</ul>
</div>
<p>Some shots of a (language) learning website I&#8217;m developing. I&#8217;m about to make the interaction a lot simpler, but I wanted to show of the old design first.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noio.nl/2011/03/cardbox-design/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Stitching Smiles</title>
		<link>http://www.noio.nl/2011/03/stitching-smiles/</link>
		<comments>http://www.noio.nl/2011/03/stitching-smiles/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 21:36:50 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[artificial intelligence]]></category>
		<category><![CDATA[computer vision]]></category>

		<guid isPermaLink="false">http://www.noio.nl/?p=410</guid>
		<description><![CDATA[For a project in our MSc Artificial Intelligence, Gilles de Hollander and I wrote a program that can compose group portraits so that everybody is smiling simultaneously.]]></description>
			<content:encoded><![CDATA[<p>For a project in our MSc Artificial Intelligence at the University of Amsterdam, Gilles de Hollander and me implemented a new system for automatically fixing group portraits. You are probably familiar with the situation of trying to take a good picture of a group of people, what usually happens is that not everyone is smiling at the same time, people look away, they have their eyes closed, etc. We used computer vision techniques to automatically combine a series of &#8216;bad&#8217; group portraits into a single good one, where everybody smiles.</p>
<div id="attachment_437" class="wp-caption aligncenter" style="width: 610px"><img class="size-full wp-image-437" title="Source Images" src="http://www.noio.nl/wordpress/wp-content/uploads/stitching-smiles/source-images.png" alt="" width="600" height="134" /><p class="wp-caption-text">An example of a group portrait where not everybody was smiling at once.</p></div>
<h4>Step One: <em>Finding Faces</em></h4>
<p>This was the easiest part of the project. Face detection has pretty much been solved. The <a href="http://en.wikipedia.org/wiki/Viola-Jones_object_detection_framework">Viola-Jones</a> object detection works more than well enough for our needs. You can download many different implementations of the Viola-Jones algorithms, we used the one included in <a href="http://opencv.willowgarage.com/wiki/">OpenCV</a>.</p>
<div id="attachment_421" class="wp-caption aligncenter" style="width: 610px"><img class="size-full wp-image-421" title="violajones" src="http://www.noio.nl/wordpress/wp-content/uploads/stitching-smiles/violajones.png" alt="Viola-Jones face detection." width="600" height="190" /><p class="wp-caption-text">Results of the face detection</p></div>
<h4>Step Two: <em>Rating Smiles</em></h4>
<p>Now that we know where the faces are, it&#8217;s time for the real A.I. task: judging whether the faces are smiling or not. I&#8217;ll give a quick rundown of how that works. We collected and labeled about 6000 images of smiling and &#8220;not smiling&#8221; people and we trained a so-called <em>support vector machine</em>. As preprocessing, we computed the <em>histogram of oriented gradients</em> of each image  (refer to the report for more details). The SVM can then assign scores or ratings to each face. We use these ratings to sort the faces, and pick the most smiling face for each person in the image.</p>
<div id="attachment_423" class="wp-caption aligncenter" style="width: 610px"><img class="size-medium wp-image-423" title="smilerates" src="http://www.noio.nl/wordpress/wp-content/uploads/stitching-smiles/smilerates-600x80.png" alt="Smile Ratings" width="600" height="80" /><p class="wp-caption-text">Smile ratings for frames of a movie displayed as bars.</p></div>
<h4>Step Three: <em>Stitching it all back together</em></h4>
<p>The third and final step is to take the areas from the photos that were indicated to be smiling faces, and stitch these back together into a neat looking composite. We have to find places where we can cut the image without creating a visible seam. Obviously, just pasting the smiling faces onto the non-smiling faces will give conspicuous artifacts, as you can see in the following image.</p>
<div id="attachment_435" class="wp-caption aligncenter" style="width: 610px"><img class="size-full wp-image-435" title="Copy Paste Artifacts" src="http://www.noio.nl/wordpress/wp-content/uploads/stitching-smiles/copypasted.gif" alt="" width="600" height="264" /><p class="wp-caption-text">Just pasting the smiling faces doesn&#39;t quite cut it.</p></div>
<p>The state-of-the-art methods for image segmentation use a method called <em>minimum graph cut. </em>As an input you can define a map of &#8220;costs&#8221; that indicates where the seams can be put without being obtrusive. The <em>min-cut max-flow</em> algorithm then finds the best &#8220;cut&#8221; through the image.</p>
<div id="attachment_436" class="wp-caption aligncenter" style="width: 610px"><img class="size-full wp-image-436" title="Overlayed Labels" src="http://www.noio.nl/wordpress/wp-content/uploads/stitching-smiles/overlayed-labels.png" alt="" width="600" height="264" /><p class="wp-caption-text">Blue areas were taken from picture A, green areas from picture B.</p></div>
<p>As a final touch we apply a tiny bit of blending to the edges. We applied the procedure to a set that includes the two pictures at the beginning of the post plus two more images and the result is shown below.</p>
<div id="attachment_473" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.noio.nl/wordpress/wp-content/uploads/stitching-smiles/final-stitched-01.png"><img src="http://www.noio.nl/wordpress/wp-content/uploads/stitching-smiles/final-stitched-01-600x348.png" alt="" title="final-stitched-01" width="600" height="348" class="size-medium wp-image-473" /></a><p class="wp-caption-text">The resulting image: everyone is smiling!</p></div>
<h4>Conclusion</h4>
<p>This whole procedure requires no setup or intervention, you can just put in the group shots in one end, and a neat composite comes out the other end in less than a minute. We feel that this method could be used for a special &#8220;group shot mode&#8221; in digital cameras. This mode would take multiple shots and composite them all at the press of a single button. We are also looking at the feasibility of turning this project into an iPhone App. If you want to know more about the exact implementation, read the <a href="http://www.noio.nl/wordpress/wp-content/uploads/stitching-smiles/projectAI-2011-dehollander-vandenberg.pdf">report</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noio.nl/2011/03/stitching-smiles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dixel&#8217;s TD</title>
		<link>http://www.noio.nl/2011/01/dixels-td/</link>
		<comments>http://www.noio.nl/2011/01/dixels-td/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 21:11:32 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[starcraft2]]></category>

		<guid isPermaLink="false">http://www.noio.nl/?p=383</guid>
		<description><![CDATA[Yesterday Popobawa and me released our map for Starcraft II, called Dixel&#8217;s TD. It&#8217;s a remake of a classic WCIII map of the same name. The goal of the map is to beat all 26 waves as fast as possible. You can do this by building your maze at the start of the lane. However, [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday <a href="http://www.sc2mapster.com/profiles/Popobawa/">Popobawa</a> and me released our map for Starcraft II, called Dixel&#8217;s TD. It&#8217;s a remake of a classic WCIII map of the same name. </p>
<p><a href="http://www.noio.nl/wordpress/wp-content/uploads/dixels-td-for-starcraft-ii/loadingscreen-small.jpg"><img src="http://www.noio.nl/wordpress/wp-content/uploads/dixels-td-for-starcraft-ii/loadingscreen-small-600x337.jpg" alt="" title="loadingscreen-small" width="600" height="337" class="aligncenter size-medium wp-image-387" /></a></p>
<p>The goal of the map is to beat all 26 waves as fast as possible. You can do this by building your maze at the start of the lane. However, monsters lose health gradually as they walk through the lane, so when you build at the front, you have to take down the strongest monsters. Building at the back is safer, but you will be a lot slower.</p>
<p><a href="http://www.noio.nl/wordpress/wp-content/uploads/dixels-td-for-starcraft-ii/Screenshot2011-01-10-21_39_38.jpg"><img src="http://www.noio.nl/wordpress/wp-content/uploads/dixels-td-for-starcraft-ii/Screenshot2011-01-10-21_39_38-600x338.jpg" alt="" title="Screenshot2011-01-10 21_39_38" width="600" height="338" class="aligncenter size-medium wp-image-385" /></a></p>
<p>You have to take into account the different kinds of monsters that spawn, in order to build a maze that is effective against each wave.</p>
<p><a href="http://www.noio.nl/wordpress/wp-content/uploads/dixels-td-for-starcraft-ii/Screenshot2011-01-10-21_38_48.jpg"><img src="http://www.noio.nl/wordpress/wp-content/uploads/dixels-td-for-starcraft-ii/Screenshot2011-01-10-21_38_48-600x338.jpg" alt="" title="Screenshot2011-01-10 21_38_48" width="600" height="338" class="aligncenter size-medium wp-image-384" /></a></p>
<p>It&#8217;s published on the EU battle.net servers, so go ahead and give it a try! Just search for &#8220;dixel&#8221;. </p>
<p><a href="http://www.noio.nl/wordpress/wp-content/uploads/dixels-td-for-starcraft-ii/Screenshot2011-01-10-21_40_39.jpg"><img src="http://www.noio.nl/wordpress/wp-content/uploads/dixels-td-for-starcraft-ii/Screenshot2011-01-10-21_40_39-600x338.jpg" alt="" title="Screenshot2011-01-10 21_40_39" width="600" height="338" class="aligncenter size-medium wp-image-386" /></a></p>
<p>Many thanks to Dixel for the original WCIII version!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noio.nl/2011/01/dixels-td/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rubble: Update</title>
		<link>http://www.noio.nl/2010/12/rubble-update/</link>
		<comments>http://www.noio.nl/2010/12/rubble-update/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 17:43:24 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[rubble]]></category>

		<guid isPermaLink="false">http://www.noio.nl/?p=354</guid>
		<description><![CDATA[So I&#8217;m still working on a little flash game. It&#8217;s a game where you play a tank and make your way through some levels where aliens will try to blow you up while you solve the physics puzzles. I thought I&#8217;d do a little update, partly for your enjoyment, partly for my motivation. To start [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;m still working on a little flash game. It&#8217;s a game where you play a tank and make your way through some levels where aliens will try to blow you up while you solve the physics puzzles. I thought I&#8217;d do a little update, partly for your enjoyment, partly for my motivation. To start you off, here are some screenshots.</p>
<div id="attachment_367" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.noio.nl/wordpress/wp-content/uploads/rubble-update/Screen-shot-2010-12-29-at-6.11.40-PM.png"><img src="http://www.noio.nl/wordpress/wp-content/uploads/rubble-update/Screen-shot-2010-12-29-at-6.11.40-PM-600x323.png" alt="" title="Screen shot 2010-12-29 at 6.11.40 PM" width="600" height="323" class="size-medium wp-image-367" /></a><p class="wp-caption-text">The Major will give you instructions every now and then.</p></div>
<div id="attachment_369" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.noio.nl/wordpress/wp-content/uploads/rubble-update/Screen-shot-2010-12-29-at-6.14.58-PM.png"><img src="http://www.noio.nl/wordpress/wp-content/uploads/rubble-update/Screen-shot-2010-12-29-at-6.14.58-PM-600x323.png" alt="" title="Screen shot 2010-12-29 at 6.14.58 PM" width="600" height="323" class="size-medium wp-image-369" /></a><p class="wp-caption-text">You can order some construction materials to get through the level.</p></div>
<div id="attachment_376" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.noio.nl/wordpress/wp-content/uploads/rubble-update/Screen-shot-2010-12-29-at-6.16.33-PM.png"><img src="http://www.noio.nl/wordpress/wp-content/uploads/rubble-update/Screen-shot-2010-12-29-at-6.16.33-PM-600x323.png" alt="" title="Screen shot 2010-12-29 at 6.16.33 PM" width="600" height="323" class="size-medium wp-image-376" /></a><p class="wp-caption-text">You can also order some heavier firepower.</p></div>
<div id="attachment_374" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.noio.nl/wordpress/wp-content/uploads/rubble-update/Screen-shot-2010-12-29-at-6.16.19-PM.png"><img src="http://www.noio.nl/wordpress/wp-content/uploads/rubble-update/Screen-shot-2010-12-29-at-6.16.19-PM-600x323.png" alt="" title="Screen shot 2010-12-29 at 6.16.19 PM" width="600" height="323" class="size-medium wp-image-374" /></a><p class="wp-caption-text">Airstrike!</p></div>
<p>I also did some music snippets for each level in the game. One of them, for the first level, is below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noio.nl/2010/12/rubble-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://www.noio.nl/wordpress/wp-content/uploads/rubble-update/01-ambient.mp3" length="1455157" type="audio/mpeg" />
		</item>
		<item>
		<title>Colourlovers Background Patterns</title>
		<link>http://www.noio.nl/2010/12/colourlovers-background-patterns/</link>
		<comments>http://www.noio.nl/2010/12/colourlovers-background-patterns/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 15:14:02 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[scraps]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.noio.nl/?p=298</guid>
		<description><![CDATA[A function snippet to fetch a random pattern from Colourlovers and apply it to the page as a background image.]]></description>
			<content:encoded><![CDATA[<div id='postbox' style='margin: 10px 0; padding: 50px 0;'><script type="text/javascript">
 function setRandomColourloversBackground(element){
    var r = new Request.JSONP({
        'url':'http://www.colourlovers.com/api/patterns/top',
        'callbackKey':'jsonCallback',
        'data':{'format':'json','numResults':25},
        'onSuccess':function(j){
            patterns = Array.from(j);
            pattern = patterns.getRandom();
            url = "url('"+pattern.imageUrl+"')"
            $(element).setStyle('background',url)
        }
    }).send();
}
window.addEvent('domready',function(){
  setRandomColourloversBackground($('postbox'));
  setRandomColourloversBackground.periodical(120000,this,$('postbox'));
});
</script>
<div style="width: 500px; margin: 0 auto; padding: 20px; background: white;">
<h2>Setting a Random Colourlovers Background Pattern</h2>
<p>Hooray for APIs! I wrote a function that gives your site a random background pattern, picked from the top rated patterns on <a href="http://www.colourlovers.com">Colourlovers</a>. You&#8217;re seeing it in action on this page!</p>
<pre class="brush: jscript; highlight: [5]; title: ; notranslate">function setRandomColourloversBackground(element){
    var r = new Request.JSONP({
        'url':'http://www.colourlovers.com/api/patterns/top',
        'callbackKey':'jsonCallback',
        'data':{'format':'json','numResults':25},
        'onSuccess':function(j){
            patterns = Array.from(j);
            pattern = patterns.getRandom();
            url = &quot;url('&quot;+pattern.imageUrl+&quot;')&quot;
            $(element).setStyle('background',url)
        }
    }).send();
}</pre>
<p>It&#8217;s picked from the top 25 patterns, but you could change that.
</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.noio.nl/2010/12/colourlovers-background-patterns/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

