<?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>The Mad Tea Lab Blog</title>
	<atom:link href="http://madtealab.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://madtealab.com/blog</link>
	<description>Divine Dev-blog of the Mad Tea Lab</description>
	<lastBuildDate>Fri, 11 Nov 2011 07:50:56 +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>11 11 11</title>
		<link>http://madtealab.com/blog/2011/11/11-11-11/</link>
		<comments>http://madtealab.com/blog/2011/11/11-11-11/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 07:46:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Audio]]></category>
		<category><![CDATA[Mad Tea Lab]]></category>

		<guid isPermaLink="false">http://madtealab.com/blog/?p=333</guid>
		<description><![CDATA[Another nice date passes by&#8230; Today I thought I would show how Mad Tea Lab can be used to prototype audio effects in realtime. Note that this only works in Firefox, and that the song might need some time to load. Here is the lab. &#160; Audio streaming support using Mozilla (Audio Data API) was [...]]]></description>
			<content:encoded><![CDATA[
<p>Another nice date passes by&#8230; <img src='http://madtealab.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Today I thought I would show how Mad Tea Lab can be used to prototype audio effects in realtime. <strong>Note that this only works in Firefox, and that the song might need some time to load.</strong> <a title="Prototyping Audio Effect in Mad Tea Lab" href="http://madtealab.com/?V=1&amp;C=7&amp;F=2&amp;R=0&amp;W=731&amp;EH=199&amp;a=1&amp;aN=Mix&amp;b=0.2&amp;bN=SampleRateDegrade&amp;c=1&amp;cN=Filtering&amp;d=0.5&amp;dN=Feedback&amp;l=0.000005&amp;lMa=.0004&amp;lN=SRModRate&amp;m=0.5&amp;mN=SRModDepth&amp;n=1&amp;nMi=1&amp;nMa=26&amp;nI=1&amp;nN=sawNote&amp;f1=rnd%28%29&amp;sy1=0.2&amp;f2=gensaw%28midiToFreq%2831%2Bfloor%28%28sawNote%2B3%29%2A2.4%29%29%2Ax%29&amp;sy2=0.35&amp;S=3&amp;SLE=30&amp;Expr=audioSource%3D%27DeepBlue.ogg%27%0A%0AstutterInit+%3D+function%28%29+%7B%0A+var+state+%3D+%7B%7D%3B%0A+state.noisePos+%3D+0%0A+state.posf+%3D+0%0A+state.posi+%3D+0%0A+state.tableL+%3D+ca%2832%2C0%29%0A+state.tableR+%3D+ca%2832%2C0%29%0A+var+sp+%3D+%5Bstate%2C+%7B%7D%5D%0A+stutterUpdate%28sp%2C+0.5%2C+0.5%2C+0%2C+1%29%0A+return+sp%0A%7D%0A%0AstutterUpdate++%3D+function%28sp%2C+feedback%2C+rate%2C+dirt%2C+mix%2C+noiseRate%2C+noiseAmp%29+%7B%0A+var+params+%3D+sp%5B1%5D%0A+params.periodMix+%3D+feedback%0A+params.periodMixVolumeCompensate+%3D+1+%2F+%281+-+feedback+%2A+0.77%29%3B%0A+params.rate+%3D+rate%0A+params.dirt+%3D+dirt%0A+params.mix+%3D+mix%0A+params.noiseRate+%3D+noiseRate%0A+params.noiseAmp+%3D+noiseAmp%0A%7D%0A%0AstutterProcess+%3D+function%28sp%2C+io%29+%7B%0Avar+state+%3D+sp%5B0%5D%2C+params+%3D+sp%5B1%5D%0Avar+periodMix+%3D+params.periodMix%0Avar+periodMixC+%3D+params.periodMixVolumeCompensate+%0Avar+rate+%3D+params.rate%0Avar+dirt+%3D+params.dirt%0Avar+mix+%3D+params.mix%0Avar+noiseRate+%3D+params.noiseRate%0Avar+noiseAmp+%3D+params.noiseAmp%0Avar+noisePos+%3D+state.noisePos+%0Avar+posf+%3D+state.posf%0Avar+posi+%3D+state.posi%0Avar+tableL+%3D+state.tableL%0Avar+tableR+%3D+state.tableR%0Avar+tableSize+%3D+tableL.length%0Afor%28j%3D0%3Bj%3Cio.length%3Bj%2B%3D2%29+%7B%0A+var+i%2C+inc%2C+adr%2C+s%3Dio%5Bj%5D%2C+s2%3Dio%5Bj%2B1%5D%3B%0A+posf+%2B%3D+rate+%2A+%281+%2B+noiseAmp+%2A+gensin%28noisePos+%2B%3D+noiseRate%29%29%3B%0A+inc+%3D+Math.floor%28posf%29%3B%0A+if%28inc%29+%7B%0A++for%28i%3D0%3Bi%3Cinc%3Bi%2B%2B%29+%7B%0A+++adr+%3D+%28posi+%2B+i+%2B+1%29+%26+%28tableSize+-+1%29%3B%0A+++tableL%5Badr%5D+%3D+lerp%28periodMix%2C+s+%2AperiodMixC%2C+tableL%5Badr%5D%29%3B+%0A+++tableR%5Badr%5D+%3D+lerp%28periodMix%2C+s2%2AperiodMixC%2C+tableR%5Badr%5D%29%3B+%0A++%7D%0A++posi+%3D+adr%3B%0A++posf+-%3D+inc%3B%0A+%7D%0A+io%5Bj%5D++%3D+lerp%28mix%2C+io%5Bj++%5D%2C+lerp%281-dirt%2A%281-posf%29%2C+tableL%5B%28posi%2BtableSize+-+1%29+%26+%28tableSize+-+1%29%5D%2C+tableL%5Bposi%5D%29%29%3B%0A+io%5Bj%2B1%5D%3D+lerp%28mix%2C+io%5Bj%2B1%5D%2C+lerp%281-dirt%2A%281-posf%29%2C+tableR%5B%28posi%2BtableSize+-+1%29+%26+%28tableSize+-+1%29%5D%2C+tableR%5Bposi%5D%29%29%3B%0A%7D%0Astate.noisePos%3DnoisePos+%0Astate.posf%3Dposf%0Astate.posi%3Dposi%0A%7D%0A%0Aif%28first%29+%7B%0A+stu%3DstutterInit%28%29%0A+play%281%2C1%29%0A%7D%0A%0AaudioProcessStereo%3Dfunction%28io%29%7B%0A+var+t%3Dio%0A+stutterUpdate%28stu%2CFeedback%2CSampleRateDegrade%2CFiltering%2CMix%2CSRModRate%2CSRModDepth%29%0A+stutterProcess%28stu%2Ct%29%0A+for%28var+i%3D0%3Bi%3Cio.length%3Bi%2B%2B%29%0A++io%5Bi%5D%3Dt%5Bi%5D%0A%7D%0A">Here is the lab</a>.<br /><br /></p>
<p><iframe src="http://www.youtube.com/embed/DMmqKBVTLmM?hl=sv&amp;fs=1" frameborder="0" width="455" height="349"></iframe></p>
<p>&nbsp;</p>
<p>Audio streaming support using Mozilla (<a href="https://wiki.mozilla.org/Audio_Data_API">Audio Data API</a>) was implemented quite a long time ago, but since it&#8217;s firefox only and a bit shaky I never felt like documenting it or show it as a feature. But it&#8217;s fun and useful so I think it&#8217;s about time&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://madtealab.com/blog/2011/11/11-11-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Five Colorful Options</title>
		<link>http://madtealab.com/blog/2011/07/five-colorful-options/</link>
		<comments>http://madtealab.com/blog/2011/07/five-colorful-options/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 02:04:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Color]]></category>

		<guid isPermaLink="false">http://madtealab.com/blog/?p=290</guid>
		<description><![CDATA[Making an image more (or less) colorful seems like an easy task. But in order to make the colorfulness respond as we expect it to, we need to take human perception into account. A nice way to evalute color-functions is to use gradients that appear to have the same intensity and colorfulness. There is also [...]]]></description>
			<content:encoded><![CDATA[
<p>Making an image more (or less) colorful seems like an easy task. But in order to make the colorfulness respond <em>as we expect it to</em>, we need to take human perception into account. A nice way to evalute color-functions is to use gradients that appear to have the same intensity and colorfulness. There is also a sophisticated perceptual model called <a href="http://en.wikipedia.org/wiki/CIECAM02">CIECAM02</a> that can be used for reference (<a href="http://sites.google.com/site/clifframes/ciecam02plugin">here is a useful CIECAM02 photoshop plugin</a>). Below is a small tool to compare ways of changing colorfulness. It&#8217;s the same source image processed in photoshop using different methods.</p>
<h3>Compare for yourself</h3>
<p><strong>Hover mouse over the link captions below to compare, click to &#8220;lock&#8221; an image</strong> (hover response might initially be slow due to image loading). You can also <a href="http://madtealab.com/blog-related/colorfulness/jpg/">compare in high-res</a>.</p>
<h4>Desaturate</h4>
<h4>Saturate</h4>
<table width="473">
<tbody>
<tr>
<td><strong> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_02.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_02.jpg') &amp;&amp; undefined || undefined">Hue/Sat. Dialog &#8211; Saturation</a><br /> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_03.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_03.jpg') &amp;&amp; undefined || undefined">Vibrance Dialog &#8211; Vibrance</a><br /> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_04.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_04.jpg') &amp;&amp; undefined || undefined">Vibrance Dialog &#8211; Saturation</a><br /> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_05.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_05.jpg') &amp;&amp; undefined || undefined">Channel Mixer Dialog</a><br /> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_01.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_01.jpg') &amp;&amp; undefined || undefined">CIECAM02, Chroma * 0</a></strong><br /> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_00.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_00.jpg') &amp;&amp; undefined || undefined">( Original )</a></td>
<td><strong> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_07.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_07.jpg') &amp;&amp; undefined || undefined">Hue/Sat. Dialog &#8211; Saturation</a><br /> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_08.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_08.jpg') &amp;&amp; undefined || undefined">Vibrance Dialog &#8211; Vibrance</a><br /> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_09.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_09.jpg') &amp;&amp; undefined || undefined">Vibrance Dialog &#8211; Saturation</a><br /> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_10.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_10.jpg') &amp;&amp; undefined || undefined">Channel Mixer Dialog</a><br /> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_06.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_06.jpg') &amp;&amp; undefined || undefined">CIECAM02, Chroma * 1.4</a></strong><br /> <a onmouseover="prev = document.getElementById('changePic').src ; document.getElementById('changePic').src = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_00.jpg'" onmouseout="document.getElementById('changePic').src = prev" href="javascript:(document.getElementById('changePic').src = prev = 'http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_00.jpg') &amp;&amp; undefined || undefined">( Original )</a></td>
</tr>
</tbody></table>
<p><img id="changePic" src="http://madtealab.com/blog-related/colorfulness/small/desat_inc_noise_00.jpg" alt="" /></p>
<p>For another comparison, check <a href="http://www.photo-mark.com/notes/2009/jan/19/analyzing-photoshop-vibrance-and-saturation/">mark meyer&#8217;s blog</a> it also has some scatter plots.</p>
<h3>Hue/Saturation Dialog &#8211; Saturation</h3>
<ul>
	<li>This method has several &#8220;dead areas&#8221; where colorfulness cannot be increased (where any color-channel is 0 or 255), here are some examples:
<ul>
	<li>004e4a (0,78,74)</li>
	<li>a2bdff (162,189,255)</li>
	<li>ffb7ad (255,183,173)</li>
</ul>
</li>
	<li>Colors close to &#8220;dead areas&#8221; have a limited saturation span.</li>
	<li>Increasing colorfulness will also increase the perceived brightness of the colorful areas.</li>
	<li>Technically this seems to be a plain <a href="http://en.wikipedia.org/wiki/HSL_and_HSV">HSL (bi-hexcone)</a> implementation.</li>
</ul>
<h3>Vibrance Dialog &#8211; Vibrance</h3>
<ul>
	<li>Vibrance increases colorfulness so that vivid colors are boosted less and faded colors are boosted more.</li>
	<li>Colors close to red are bosted less (the intent is to retain skin colors according to the manual).</li>
	<li>Using vibrance -100 will not fully desaturate and dark colors will be retained more than light ones.</li>
	<li>Calculation involves a <a href="#HSVHSL">HSV/HSL-like space*</a>.</li>
	<li>An <em>interesting side-effect</em> of desaturating vibrance is that the colored parts of the image get a kind of S-curve applied to it, increasing the contrast of the desaturated material. This often looks quite good (see below), though it can cause some clipping of bright colors. <br /> <a onmouseover="document.getElementById('facesPic').src = 'http://madtealab.com/blog-related/colorfulness/small/faces_vib.jpg'" onmouseout="document.getElementById('facesPic').src = 'http://madtealab.com/blog-related/colorfulness/small/faces_org.jpg'" href="javascript:undefined">Hover mouse here to see Vibrance -100</a><br /> <a onmouseover="document.getElementById('facesPic').src = 'http://madtealab.com/blog-related/colorfulness/small/faces_ciecam02.jpg'" onmouseout="document.getElementById('facesPic').src = 'http://madtealab.com/blog-related/colorfulness/small/faces_org.jpg'" href="javascript:undefined">Hover mouse here to see Grey (CIECAM02)</a><br /> <img id="facesPic" src="http://madtealab.com/blog-related/colorfulness/small/faces_org.jpg" alt="" /></li>
</ul>
<h3>Vibrance Dialog &#8211; Saturation</h3>
<ul>
	<li>Overall, this algorithm is a very nice improvement over the older Hue/Saturation dialog, since it seems to be <a href="http://en.wikipedia.org/wiki/Gamma_correction">gamma corrected</a>, and calculation is <em>not</em> done in <a href="#HSVHSL">HSV/HSL space*</a>. Result is quite similar to CIECAM02.</li>
	<li>Colors are mixed to grey using about 28% 72% 0% (and then interpolated in linear RGB), which is close to <a href="http://en.wikipedia.org/wiki/Luminance_%28relative%29">perceptual standards</a>.</li>
	<li>Bluish images might appear darker after desaturated (and using saturation -100 will discard all blue information).</li>
	<li>Saturation values are somewhat counter intuitive, if you saturate by -33 you have to saturate by 50 to get back to the original level. Though it is mathematically correct if you think in percentages; (1 &#8211; 0.33) * (1 + 0.5) is about one.</li>
</ul>
<h3>Channel Mixer Dialog</h3>
<ul>
	<li>Increasing colorfulness will also increase the perceived brightness of the colorful areas.</li>
	<li>Quite smooth and consistent, might be useful if you don&#8217;t have access to vibrance color controls.</li>
	<li>Mixer values (+120 -10 -10, -10 +120 -10, -10 -10 +120)</li>
	<li>Mixer values used for grey (+30 +60 +10 Monochrome)</li>
</ul>
<hr />
<p><a name="HSVHSL"></a></p>
<p>* <a href="http://en.wikipedia.org/wiki/HSI_color_space">HSV/HSL color space</a> is strikingly perceptually inconsistent, an extreme example is that it treats these two colors as having the same brightness:</p>
<p>0000FF (0,0,256)</p>
<p>FFFF00 (256,256,0)</p>
<p>Artifacts from the HSV/HSL transforms can be seen in the <a href="http://madtealab.com/blog-related/colorfulness/jpg/">comparison tool</a>, such as unsmooth gradients and increased noise (clearly visible in a still image from Canon D7 footage with a high ISO setting). Also note that, for most images <strong>these inconsistencies do not pose any major problem</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://madtealab.com/blog/2011/07/five-colorful-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy New Year Again!</title>
		<link>http://madtealab.com/blog/2011/02/happy-new-year-again/</link>
		<comments>http://madtealab.com/blog/2011/02/happy-new-year-again/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 22:46:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mad Tea Lab]]></category>

		<guid isPermaLink="false">http://madtealab.com/blog/?p=274</guid>
		<description><![CDATA[So it&#8217;s Chinese new year, and what animal? The Rabbit! And what kind of association could this bring to an oldschool 3D hacker? Yeah, you got it! Of course it&#8217;s the Stanford Bunny! So this is todays Mad Tea Lab exercise! Parsing and rendering the good old bun in 3D!]]></description>
			<content:encoded><![CDATA[<p>So it&#8217;s Chinese new year, and what animal?<br />
The Rabbit! And what kind of association could<br />
this bring to an oldschool 3D hacker?<br />
Yeah, you got it! Of course it&#8217;s the <a href="http://graphics.stanford.edu/data/3Dscanrep/#bunny">Stanford Bunny</a>!<br />
So this is todays Mad Tea Lab exercise!<br />
Parsing and rendering <a title="Stanford Bunny!" href="http://madtealab.com/?C=7&amp;G=1&amp;O=1&amp;W=696&amp;GW=613&amp;GH=412&amp;GX=0.021&amp;GY=0.09&amp;GS=7&amp;Rot=2.4859%2C0.401826%2C2.99&amp;EH=274&amp;a=0.7&amp;aMa=8&amp;b=0.3&amp;bMa=2*pi&amp;bS=7.61&amp;c=1&amp;cMa=2*pi&amp;cS=8.47&amp;d=5.7&amp;dMa=2*pi&amp;l=0.5&amp;mMa=100&amp;mI=1&amp;n=0.7&amp;nMa=6&amp;Expr=objfile%3DloadResource%28%27bunny.obj%27%29%0Aif%28objfile%20%26%26%20%21v%29%20%7B%0A%20v%3D%5B%5D%0A%20f%3D%5B%5D%0A%20tok%20%3D%20objfile.replace%28/%5Cn/g%2C%20%27%20%27%29.split%28%22%20%22%29%3B%0A%20for%28i%3D0%3Bi%3Ctok.length%3Bi++%29%20%7B%0A%20%20if%28tok%5Bi%5D%3D%3D%27v%27%29%20v.push%28%5BparseFloat%28tok%5B++i%5D%29%2CparseFloat%28tok%5B++i%5D%29%2CparseFloat%28tok%5B++i%5D%29%5D%29%0A%20%20if%28tok%5Bi%5D%3D%3D%27f%27%29%20f.push%28%5BparseInt%28tok%5B++i%5D%29-1%2CparseInt%28tok%5B++i%5D%29-1%2CparseInt%28tok%5B++i%5D%29-1%5D%29%0A%20%7D%0A%0A%20mat%3DgetPlotMatrix%28%29%3B%0A%20sn%3Dmmul%28%5B%5B0%2C0%2C1%2C0%5D%5D%2Cmat%29%5B0%5D%0A%20f%3Dsort%28f%2Cfunction%28a%2Cb%29%20%7B%20a%3Dv%5Ba%5B0%5D%5D%3B%20b%3Dv%5Bb%5B0%5D%5D%3B%0A%20%20return%20mmul%28%5B%5Ba%5B0%5D%2Ca%5B1%5D%2Ca%5B2%5D%2C0%5D%5D%2Cmat%29%5B0%5D%5B2%5D%20-%20mmul%28%5B%5Bb%5B0%5D%2Cb%5B1%5D%2Cb%5B2%5D%2C0%5D%5D%2Cmat%29%5B0%5D%5B2%5D%7D%29%0A%7D%0A%0A%0AdrawOverride%3Dfunction%28w%2Ch%29%20%7B%0A%20background%2890%2C10%2C0%29%0A%20noStroke%28%29%0A%0A%20for%28i%3D0%3Bi%3C50%3Bi++%29%20%7B%0A%20%20var%20cc%3D20*3%2Cx%3Dhash%28i+4%29*w%2Cy%3Dhash%28i+888%29*h%2Cww%3Dn*%28w/130+47*hash%28i+999%29%29%2Cww2%3Dww*0.1%0A%20%20fill%28255%2C185%2C0%2C255*%281-hash%28i+888%29%29%29%0A%20%20beginShape%28%29%0A%20%20for%28j%3D0%3Bj%3Ccc%3Bj+%3D3%29%0A%20%20%20vertex%28x+%28%28j%256%3D%3D0%29%3Fww%3Aww2%29*gen%280.25+j/%28cc-3%29%29%2C%20y+%28%28j%256%3D%3D0%29%3Fww%3Aww2%29*gen%28j/%28cc-3%29%29%29%0A%20%20endShape%28%29%0A%20%7D%0A%0A%20plotSpace%28%29%0A%20for%28i%3D0%3Bi%3Cf.length%3Bi++%29%0A%20%7B%0A%20%20var%20v1%3Dv%5Bf%5Bi%5D%5B0%5D%5D%2C%20v2%3Dv%5Bf%5Bi%5D%5B1%5D%5D%2C%20v3%3Dv%5Bf%5Bi%5D%5B2%5D%5D%2C%20nn%3Dcross%28sub%28v2%2Cv1%29%2Csub%28v3%2Cv1%29%29%2C%20s%2Cs2%0A%20%20if%28dot%28nn%2Csn%29%3C0%29%20%7B%0A%20%20%20s%3Ddot%28nn%2Crot%28%5B1%2C2%2C4%5D%2Cb%2Cc%2Cd%29%29*8000%0A%20%20%20s2%3Dlerp%28l%2C1%2Cdot%28nn%2C%5B1%2C-2%2C2%5D%29*20000%29%0A%20%20%20fill%28mix%28mul%28%5Bhash%28i+m%29%2Chash%28i+m+1%29*1.4%2Chash%28i+m+2%29*2%5D%2Cs2%29%2Cmul%28%5B1%2C0.3%2C0.2%5D%2Cs%29%2Ca%29%2C255%29%0A%20%20%20triangle%28v1%2Cv2%2Cv3%29%0A%20%20%7D%0A%20%7D%0A%7D%0A">the good old bun in 3D!</a></p>
<p><a title="Stanford Bunny!" href="http://madtealab.com/?C=7&amp;G=1&amp;O=1&amp;W=696&amp;GW=613&amp;GH=412&amp;GX=0.021&amp;GY=0.09&amp;GS=7&amp;Rot=2.4859%2C0.401826%2C2.99&amp;EH=274&amp;a=0.7&amp;aMa=8&amp;b=0.3&amp;bMa=2*pi&amp;bS=7.61&amp;c=1&amp;cMa=2*pi&amp;cS=8.47&amp;d=5.7&amp;dMa=2*pi&amp;l=0.5&amp;mMa=100&amp;mI=1&amp;n=0.7&amp;nMa=6&amp;Expr=objfile%3DloadResource%28%27bunny.obj%27%29%0Aif%28objfile%20%26%26%20%21v%29%20%7B%0A%20v%3D%5B%5D%0A%20f%3D%5B%5D%0A%20tok%20%3D%20objfile.replace%28/%5Cn/g%2C%20%27%20%27%29.split%28%22%20%22%29%3B%0A%20for%28i%3D0%3Bi%3Ctok.length%3Bi++%29%20%7B%0A%20%20if%28tok%5Bi%5D%3D%3D%27v%27%29%20v.push%28%5BparseFloat%28tok%5B++i%5D%29%2CparseFloat%28tok%5B++i%5D%29%2CparseFloat%28tok%5B++i%5D%29%5D%29%0A%20%20if%28tok%5Bi%5D%3D%3D%27f%27%29%20f.push%28%5BparseInt%28tok%5B++i%5D%29-1%2CparseInt%28tok%5B++i%5D%29-1%2CparseInt%28tok%5B++i%5D%29-1%5D%29%0A%20%7D%0A%0A%20mat%3DgetPlotMatrix%28%29%3B%0A%20sn%3Dmmul%28%5B%5B0%2C0%2C1%2C0%5D%5D%2Cmat%29%5B0%5D%0A%20f%3Dsort%28f%2Cfunction%28a%2Cb%29%20%7B%20a%3Dv%5Ba%5B0%5D%5D%3B%20b%3Dv%5Bb%5B0%5D%5D%3B%0A%20%20return%20mmul%28%5B%5Ba%5B0%5D%2Ca%5B1%5D%2Ca%5B2%5D%2C0%5D%5D%2Cmat%29%5B0%5D%5B2%5D%20-%20mmul%28%5B%5Bb%5B0%5D%2Cb%5B1%5D%2Cb%5B2%5D%2C0%5D%5D%2Cmat%29%5B0%5D%5B2%5D%7D%29%0A%7D%0A%0A%0AdrawOverride%3Dfunction%28w%2Ch%29%20%7B%0A%20background%2890%2C10%2C0%29%0A%20noStroke%28%29%0A%0A%20for%28i%3D0%3Bi%3C50%3Bi++%29%20%7B%0A%20%20var%20cc%3D20*3%2Cx%3Dhash%28i+4%29*w%2Cy%3Dhash%28i+888%29*h%2Cww%3Dn*%28w/130+47*hash%28i+999%29%29%2Cww2%3Dww*0.1%0A%20%20fill%28255%2C185%2C0%2C255*%281-hash%28i+888%29%29%29%0A%20%20beginShape%28%29%0A%20%20for%28j%3D0%3Bj%3Ccc%3Bj+%3D3%29%0A%20%20%20vertex%28x+%28%28j%256%3D%3D0%29%3Fww%3Aww2%29*gen%280.25+j/%28cc-3%29%29%2C%20y+%28%28j%256%3D%3D0%29%3Fww%3Aww2%29*gen%28j/%28cc-3%29%29%29%0A%20%20endShape%28%29%0A%20%7D%0A%0A%20plotSpace%28%29%0A%20for%28i%3D0%3Bi%3Cf.length%3Bi++%29%0A%20%7B%0A%20%20var%20v1%3Dv%5Bf%5Bi%5D%5B0%5D%5D%2C%20v2%3Dv%5Bf%5Bi%5D%5B1%5D%5D%2C%20v3%3Dv%5Bf%5Bi%5D%5B2%5D%5D%2C%20nn%3Dcross%28sub%28v2%2Cv1%29%2Csub%28v3%2Cv1%29%29%2C%20s%2Cs2%0A%20%20if%28dot%28nn%2Csn%29%3C0%29%20%7B%0A%20%20%20s%3Ddot%28nn%2Crot%28%5B1%2C2%2C4%5D%2Cb%2Cc%2Cd%29%29*8000%0A%20%20%20s2%3Dlerp%28l%2C1%2Cdot%28nn%2C%5B1%2C-2%2C2%5D%29*20000%29%0A%20%20%20fill%28mix%28mul%28%5Bhash%28i+m%29%2Chash%28i+m+1%29*1.4%2Chash%28i+m+2%29*2%5D%2Cs2%29%2Cmul%28%5B1%2C0.3%2C0.2%5D%2Cs%29%2Ca%29%2C255%29%0A%20%20%20triangle%28v1%2Cv2%2Cv3%29%0A%20%20%7D%0A%20%7D%0A%7D%0A"><img class="aligncenter size-full wp-image-275" title="stanfordbunny" src="http://madtealab.com/blog/wp-content/uploads/stanfordbunny.jpg" alt="stanfordbunny" width="406" height="273" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://madtealab.com/blog/2011/02/happy-new-year-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merry Christmas 2010</title>
		<link>http://madtealab.com/blog/2010/12/merry-christmas-2010/</link>
		<comments>http://madtealab.com/blog/2010/12/merry-christmas-2010/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 01:42:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mad Tea Lab]]></category>

		<guid isPermaLink="false">http://madtealab.com/blog/?p=267</guid>
		<description><![CDATA[(check it out)]]></description>
			<content:encoded><![CDATA[<p><a title="Checkout lab!" href="http://madtealab.com/?C=1&amp;F=1&amp;G=1&amp;R=0&amp;W=460&amp;GW=406&amp;GH=311&amp;GS=1.96&amp;GQ=80&amp;EH=137&amp;aA=1&amp;aS=-4.5&amp;f1=flake%28x%2Cy%29&amp;fs1=2D&amp;Expr=flake%20%3D%20function%28x%2Cy%29%0A%7B%0A%20%20%20var%20an%20%3D%20tri%28atan2%28x%2C-y%29+pi%2Cpi/5%29%0A%20%20%20var%20l%20%3D%20sqrt%28x*x+y*y%29%0A%20%20%20x%20%3D%20sin%28an%29*l%0A%20%20%20y%20%3D%20cos%28an%29*l%0A%20%20%20var%20lum%20%3D%20lerp%28gen%28%28a+x*2+y%29*2%29+1-200*x*x*x%2C0%2C1-%28x+y%29%29%0A%20%20%20var%20hue%20%3D%20gen%28x+y+a%29*0.2+a%0A%20%20%20return%20fromHSV%28%5Bhue%2Cpow%281-lum%2C0.4%29%2Clum%5D%29%0A%7D"><img class="aligncenter size-full wp-image-268" title="christmas2010" src="http://madtealab.com/blog/wp-content/uploads/christmas2010.png" alt="christmas2010" width="406" height="311" /><br />
<br/><br />
(check it out)<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://madtealab.com/blog/2010/12/merry-christmas-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 10 10 10 10</title>
		<link>http://madtealab.com/blog/2010/10/10-10-10-10-10/</link>
		<comments>http://madtealab.com/blog/2010/10/10-10-10-10-10/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 08:09:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mad Tea Lab]]></category>

		<guid isPermaLink="false">http://madtealab.com/blog/?p=243</guid>
		<description><![CDATA[Check out this old school sinus animation! I just had to write a blog entry since it&#8217;s 10/10/10! But also, there are a few features that I&#8217;ve worked on lately but been too lazy to blog about, so this seems like a good opportunity! Here&#8217;s the list: Loading and drawing Images Channel and Pixel access, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-242" title="colordisco" src="http://madtealab.com/blog/wp-content/uploads/colordisco.jpg" alt="colordisco" width="382" height="382" /></p>
<p>Check out this <a title="Sinus animation!" href="http://madtealab.com/?C=1&amp;G=1&amp;R=0&amp;W=572&amp;GW=518&amp;GH=414&amp;GX=-0.0261&amp;GY=-0.17&amp;GS=0.5249&amp;Rot=1.084%2C0.2512%2C-0.91598&amp;EH=301&amp;aA=1&amp;aS=20&amp;Expr=drawOverride%20%3D%20function%28%29%0A%7B%0A%20var%20i%2Cn%3D200*3%2Car%3Dca%28n%29%0A%20background%2815%2C20%29%0A%20noStroke%28%29%0A%20plotSpace%28%29%3B%0A%0A%20for%28i%3D0%3Bi%3Cn%3Bi+%3D3%29%20%7B%0A%20%20ar%5Bi%5D%3Dgen%28a+i/120+a%29%0A%20%20ar%5Bi+1%5D%3Dgen%28i/290%29%0A%20%20ar%5Bi+2%5D%3Dgen%28i/170-a*2%29%0A%20%7D%0A%0A%20for%28i%3D0%3Bi%3Cn%3Bi+%3D3%29%20%7B%0A%20%20fill%28fromHSV%28%5Bi/140+a*6%2C1%2C1%5D%29%2C130%29%0A%20%20point%28ar%5Bi%5D%2Car%5Bi+1%5D%2Car%5Bi+2%5D%2C6%29%3B%0A%20%7D%0A%0A%20fill%28255%29%0A%20for%28i%3D0%3Bi%3Cn%3Bi+%3D3%29%0A%20%20point%28ar%5Bi%5D%2Car%5Bi+1%5D%2Car%5Bi+2%5D%29%3B%0A%7D">old school sinus animation</a>!</p>
<p>I just had to write a blog entry since it&#8217;s 10/10/10!</p>
<p>But also, there are a few features that I&#8217;ve worked on lately but been too lazy to blog about, so this seems like a good opportunity! Here&#8217;s the list:</p>
<ul>
<li><a href="http://madtealab.com/index.html?G=1&amp;R=0&amp;W=580&amp;GW=529&amp;GH=351&amp;GX=4.19&amp;GY=1.4000000000000001&amp;GS=0.22834949391435086&amp;EH=297&amp;Expr=xx%3D%5B%0A%20%20loadImage%28%27parrots.png%27%29%0A%20%2CloadImage%28%27lighthouse.png%27%29%0A%20%2CloadImage%28%27granger.png%27%29%0A%20%2CloadImage%28%27lena.png%27%29%0A%20%2CloadImage%28%27sweden.jpg%27%29%0A%20%2CloadImage%28%27leaf.jpg%27%29%0A%5D%3B%0A%0Adraw%3Dfunction%28%29%0A%7B%0A%20plotSpace%28%29%0A%20image%28xx%5B0%5D%2C3%2C5%2C90%2C60%29%0A%20image%28xx%5B1%5D%2C6%2C5%2C50%2C70%29%0A%20imageMode%28CENTER%29%0A%20image%28xx%5B2%5D%2C0%2C0%2C90%2C60%29%0A%20image%28xx%5B3%5D%2C5%2C-2%29%0A%20imageMode%28CORNERS%29%0A%20image%28xx%5B4%5D%2C1%2C1%2C4%2C3%29%0A%20image%28xx%5B5%5D%2C5%2C1%2C8%2C3%29%0A%7D">Loading and drawing Images</a></li>
<li><a href="http://madtealab.com/index.html?C=1&amp;G=1&amp;R=0&amp;GH=229&amp;GX=3.8&amp;GY=4.2&amp;GS=0.218487&amp;EH=420&amp;a=0.5&amp;aMi=0.01&amp;aMa=2&amp;aS=1.47&amp;Expr=var%20pic%3DloadImage%28%27parrots.png%27%29%0A%0Adraw%3Dfunction%28w%2Ch%29%20%7B%0A%20noStroke%28%29%3B%0A%20plotSpace%28%29%3B%0A%20imageMode%28CORNERS%29%0A%20image%28pic%2C0%2C0%2C12%2C8%29%3B%0A%20fill%280%2C0%2C0%29%3B%0A%20rect%280%2C0%2C3%2C1%29%0A%20fill%28255%2C0%2C0%29%3B%0A%20circle%281%2C1%2C0.5%29%0A%20fill%280%2C255%2C0%29%3B%0A%20circle%282%2C1%2C0.5%29%0A%20fill%280%2C0%2C255%29%3B%0A%20circle%281.5%2C1%2C0.25%29%0A%20circle%281.5%2C0.5%2C0.1%29%0A%0A%20forEachChannelA%28function%28dst%2Csrc%2Ci%2Cys%2Cxs%29%7B%0A%20%20%20dst%5Bi%5D%3Dpow%28%0A%20%20%20%20%20%20%28%0A%20%20%20%20%20%20%20abs%28src%5Bi%5D%20%20%20%20-%20src%5Bi-xs%5D%29+%0A%20%20%20%20%20%20%20abs%28src%5Bi+ys%5D%20-%20src%5Bi-xs+ys%5D%29+%0A%20%20%20%20%20%20%20abs%28src%5Bi%5D%20%20%20%20-%20src%5Bi+ys%5D%29+%0A%20%20%20%20%20%20%20abs%28src%5Bi-xs%5D%20-%20src%5Bi-xs+ys%5D%29+%0A%20%20%20%20%20%20%20abs%28src%5Bi%5D%20%20%20%20-%20src%5Bi-xs+ys%5D%29+%0A%20%20%20%20%20%20%20abs%28src%5Bi-xs%5D%20-%20src%5Bi+ys%5D%29%0A%20%20%20%20%20%20%29%20/%20%28255*3%29%2C%20a%29*255%3B%0A%20%20%7D%2C%20w/2%2C%200%2C%20w/2-1%2C%20h-1%2C%2050%29%3B%0A%7D">Channel</a> and <a href="http://madtealab.com/index.html?G=1&amp;R=0&amp;O=1&amp;W=530&amp;GW=476&amp;GH=175&amp;GX=4.5759&amp;GY=5.013&amp;GS=0.42&amp;EH=156&amp;Expr=var%20pic%3DloadImage%28%27parrots.png%27%29%0A%0Adraw%3Dfunction%28w%2Ch%29%20%7B%0A%20noStroke%28%29%3B%0A%20plotSpace%28%29%3B%0A%20imageMode%28CORNERS%29%0A%20image%28pic%2C0%2C0%2C12%2C8%29%3B%0A%20forEachPixel%28%20function%28R%2CG%2CB%2CA%29%20%7B%0A%20%20return%20%5BG%2CB%2CR%2CA%5D%3B%20%0A%20%20%7D%2C%20w/2%2C%200%2C%20w/2-1%2C%20h-1%2C%2050%29%3B%0A%7D">Pixel</a> access, for easy prototyping of color filters etc</li>
<li>Color-space conversions (from/to) <a href="http://madtealab.com/index.html?C=1&amp;F=1&amp;G=1&amp;E=0&amp;R=0&amp;W=540&amp;GW=486&amp;GH=269&amp;GX=0.5&amp;GY=0.5&amp;GS=3.109668148878713&amp;GSY=0.559273054841699&amp;a=1&amp;f1=fromHSV%28%5Bx%2Cy%2Ca%5D%29&amp;fs1=2D">HSV</a>, <a href="http://madtealab.com/index.html?C=1&amp;F=1&amp;G=1&amp;E=0&amp;R=0&amp;W=540&amp;GW=486&amp;GH=269&amp;GX=0.5&amp;GY=0.5&amp;GS=3.109668148878713&amp;GSY=0.559273054841699&amp;a=1&amp;f1=fromHSL%28%5Bx%2Ca%2Cy%5D%29&amp;fs1=2D">HSL</a>, <a href="http://madtealab.com/index.html?C=1&amp;F=1&amp;G=1&amp;E=0&amp;R=0&amp;GS=7.52&amp;a=0.5&amp;f1=fromYUV%28%5Ba%2Cy%2Cx%5D%29&amp;fs1=2D">YUV</a></li>
<li>A lot of behind the scenes stuff, better alignment of the <a href="http://processing.org/reference/">processing api</a>, fixes, new unfinished stuff etc</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://madtealab.com/blog/2010/10/10-10-10-10-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Music video with Mad Tea lab</title>
		<link>http://madtealab.com/blog/2010/05/music-video-with-mad-tea-lab/</link>
		<comments>http://madtealab.com/blog/2010/05/music-video-with-mad-tea-lab/#comments</comments>
		<pubDate>Mon, 03 May 2010 20:33:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mad Tea Lab]]></category>

		<guid isPermaLink="false">http://madtealab.com/blog/?p=190</guid>
		<description><![CDATA[This is a video made from animation rendered in Mad Tea Lab mixed with some footage I shot at Tore Jarlos studio in Stockholm. The music is Tores remix of Dear Martins song called &#8220;We Are&#8221;. Here is a lab if you want to play! If you’re interested in rendering animation with Mad Tea Lab [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="455" height="256" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=11304097&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=3b657d&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="455" height="256" src="http://vimeo.com/moogaloop.swf?clip_id=11304097&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=3b657d&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>This is a video made from animation rendered in Mad Tea Lab mixed with some footage I shot at <a href="http://torejarlo.com/" target="_blank">Tore Jarlo</a>s studio in Stockholm. The music is Tores remix of <a href="http://www.dearmartin.com/">Dear Martin</a>s song called &#8220;We Are&#8221;.</p>
<p><a href="http://madtealab.com/?C=2&amp;F=1&amp;G=1&amp;R=0&amp;W=517&amp;GW=440&amp;GH=237&amp;GX=-0.8131358934905881&amp;GY=-0.19238866036781835&amp;GS=954386628.7131413&amp;GQ=70&amp;GQI=1&amp;EH=250&amp;a=4.45&amp;aMa=2*pi&amp;b=0.5&amp;f1=mm%28rr%28%5Bx%2Cy%5D%29%29&amp;fs1=2D&amp;Expr=xx%3D%5B-0.8131358935162883%2C-0.192388660359058%5D%3B%0Avar%20sc%3Dexp2%281+%281-b%29*21%29%3B%0Arr%3Dfunction%28x%29%20%7B%0A%20return%20%5B%28x%5B0%5D-xx%5B0%5D%29*sc+xx%5B0%5D%2C%20%28x%5B1%5D-xx%5B1%5D%29*sc+xx%5B1%5D%5D%3B%0A%7D%3B%0Amm%3Dfunction%28ar%29%20%7B%0A%20var%20R%2Cj%2Cx%3Dar%5B0%5D%2Cy%3Dar%5B1%5D%2Cr%3Dx%2Ci%3Dy%3B%0A%20for%28j%3D0%3Bj%3C170%20%26%26%20r*r%20+%20i*i%20%3C%3D%204%3Bj++%29%20%7B%0A%20%20R%20%3D%20r*r%20-%20i*i%20+%20x%3B%0A%20%20i%20%3D%202*r*i%20+%20y%3B%0A%20%20r%20%3D%20R%3B%0A%20%7D%0A%20var%20iter%3Dtri%28j/32%29%3B%0A%20var%20gray%3Dclamp%28-1.7*%28r*0.1+0.5%29-0.44*%28i*0.1+0.5%29+2*iter%29%3B%0A%20var%20red%3Dclamp%28clamp%28%28r-i%29*cos%28a%29%29-2*iter-0.44%29*2%3B%0A%20return%20%5Bgray+red%2Cgray*0.9%2Cgray*0.8%5D%3B%0A%7D" target="_blank">Here is a lab</a> if you want to play!</p>
<p>If you’re interested in rendering animation with Mad Tea Lab <a href="http://madtealab.com/blog/saving-animation/">read more here…</a></p>
]]></content:encoded>
			<wfw:commentRss>http://madtealab.com/blog/2010/05/music-video-with-mad-tea-lab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mandelbrot Zoom</title>
		<link>http://madtealab.com/blog/2010/04/mandelbrot-zoom/</link>
		<comments>http://madtealab.com/blog/2010/04/mandelbrot-zoom/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 07:18:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mad Tea Lab]]></category>

		<guid isPermaLink="false">http://madtealab.com/blog/?p=215</guid>
		<description><![CDATA[So, I made a mandelbrot zoom with some color tweaking, the youtube clip above was rendered using Mad Tea Lab. If you&#8217;re interested in rendering animation with Mad Tea Lab read more here&#8230; (Note that rendering fractals using javascript is painfully slow, so if you know you just want to render some basic fractal animations, [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="455" height="280" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/IgTPye878kw&amp;hl=sv_SE&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="455" height="280" src="http://www.youtube.com/v/IgTPye878kw&amp;hl=sv_SE&amp;fs=1&amp;rel=0&amp;color1=0x2b405b&amp;color2=0x6b8ab6" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>So, I made a <a href="http://madtealab.com/?C=2&amp;F=1&amp;G=1&amp;R=0&amp;W=520&amp;GW=483&amp;GH=320&amp;GX=-0.7802899624797012&amp;GY=-0.13011162038683258&amp;GS=426663648975.9744&amp;GQ=70&amp;GQI=1&amp;EH=334&amp;a=4.45&amp;aMa=2*pi&amp;b=-0.7&amp;bMi=-0.7&amp;f1=mm%28rr%28%5Bx%2Cy%5D%29%29&amp;fs1=2D&amp;Expr=dumpVariable%3D%27b%27%3B%0AdumpFPS%3D120%3B%0AdumpW%3D640%3B%0AdumpH%3D360%3B%0AdumpName%3D%27mandel%27%3B%0AaaIt%3D4%3B%0A%0Axx%3D%5B-0.7802899624797012%2C-0.13011162038683258%5D%3B%0Avar%20sc%3Dexp2%28%281-b%29*21%29%3B%0Arr%3Dfunction%28x%29%20%7B%0A%20return%20%5B%28x%5B0%5D-xx%5B0%5D%29*sc+xx%5B0%5D%2C%20%28x%5B1%5D-xx%5B1%5D%29*sc+xx%5B1%5D%5D%3B%0A%7D%3B%0Amm%3Dfunction%28ar%29%20%7B%0A%20var%20R%2Cj%2Cx%3Dar%5B0%5D%2Cy%3Dar%5B1%5D%2Cr%3Dx%2Ci%3Dy%3B%0A%20for%28j%3D0%3Bj%3C370%20%26%26%20r*r%20+%20i*i%20%3C%3D%204%3Bj++%29%20%7B%0A%20%20R%20%3D%20r*r%20-%20i*i%20+%20x%3B%0A%20%20i%20%3D%202*r*i%20+%20y%3B%0A%20%20r%20%3D%20R%3B%0A%20%7D%0A%20var%20iter%3Dtri%28j/32%29%3B%0A%20var%20gray%3Dclamp%28-1.7*%28r*0.1+0.5%29-0.44*%28i*0.1+0.5%29+2*iter%29%3B%0A%20var%20red%3Dclamp%28clamp%28%28r-i%29*cos%28a%29%29-2*iter-0.44%29*2%3B%0A%20return%20%5Bgray+red%2Cgray*0.9%2Cgray*0.8%5D%3B%0A%7D">mandelbrot zoom with some color tweaking</a>, the <a href="http://www.youtube.com/watch?v=IgTPye878kw">youtube clip</a> above was rendered using Mad Tea Lab. If you&#8217;re interested in rendering animation with Mad Tea Lab <a href="http://madtealab.com/blog/saving-animation/">read more here&#8230;</a></p>
<p>(Note that rendering fractals using javascript is painfully slow, so if you know you just want to render some basic fractal animations, there are probably better tools out there&#8230;)</p>
<p>Still images:<br />
<a href="http://www.flickr.com/photos/29050552@N04/4549888488/sizes/o/">High resolution snapshot 1</a><br />
<a href="http://www.flickr.com/photos/29050552@N04/4549888320/sizes/o/">High resolution snapshot 2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://madtealab.com/blog/2010/04/mandelbrot-zoom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy Pi Day!</title>
		<link>http://madtealab.com/blog/2010/03/happy-pi-day/</link>
		<comments>http://madtealab.com/blog/2010/03/happy-pi-day/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 02:46:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mad Tea Lab]]></category>

		<guid isPermaLink="false">http://madtealab.com/blog/?p=193</guid>
		<description><![CDATA[Celebrate your inner geek&#8230; (Click the image below to explore/edit the pi fractal!)]]></description>
			<content:encoded><![CDATA[<p>Celebrate your inner geek&#8230;</p>
<p>(Click the image below to explore/edit the pi fractal!)</p>
<p><a href="http://madtealab.com/?C=2&amp;F=1&amp;G=1&amp;R=0&amp;W=525&amp;GW=359&amp;GH=235&amp;GX=0.5&amp;GY=0.5&amp;GS=1.65&amp;GQ=90&amp;GQI=1&amp;EH=413&amp;a=8&amp;aMa=20&amp;b=-0.35&amp;bMi=-pi&amp;bMa=pi&amp;f1=trace%28x%2Cy%29&amp;fs1=2G&amp;Expr=yy%3D%5B0%2C0.67%2C0.07%2C0.87%2C0.25%2C0.97%2C1%2C1%2C1%2C0.77%2C0.78%2C0.77%2C%0A%20%20%20%200.77%2C0.41%2C0.86%2C0.21%2C0.97%2C0.3%2C1%2C0.28%2C0.94%2C0.11%2C%0A%20%20%20%200.8%2C0%2C0.68%2C0.1%2C0.64%2C0.3%2C0.68%2C0.77%2C0.43%2C0.77%2C0.38%2C%0A%20%20%20%200.3%2C0.35%2C0.11%2C0.22%2C0%2C0.13%2C0.03%2C0.1%2C0.11%2C0.16%2C%0A%20%20%20%200.23%2C0.25%2C0.34%2C0.29%2C0.48%2C0.33%2C0.77%2C0.14%2C0.75%5D%3B%0A%0AinsidePoly%3Dfunction%28x%2Cy%2Cxy%29%20%7B%0A%20%20var%20i%2Cj%2Cc%3D0%3B%0A%20%20for%28i%3D0%2Cj%3Dxy.length-2%3Bi%3Cxy.length%3Bj%3Di%2Ci+%3D2%29%20%7B%0A%20%20%20%20if%28%28%28xy%5Bi+1%5D%3Ey%29%20%21%3D%20%28xy%5Bj+1%5D%3Ey%29%29%20%26%26%20%0A%20%20%20%28x%3C%20%28xy%5Bj%5D-xy%5Bi%5D%29%20*%20%28y-xy%5Bi+1%5D%29%20/%20%28xy%5Bj+1%5D-xy%5Bi+1%5D%29%20+%20xy%5Bi%5D%29%20%29%0A%20%20%20%20%20%20%20c%3D%21c%3B%0A%20%20%7D%0A%20%20return%20c%3B%0A%7D%0A%0Atrace%3Dfunction%28x%2Cy%29%20%7B%0A%20var%20i%2Cr%3D0%2Cox%3B%0A%20for%28i%3D0%3Bi%3C5%3Bi++%29%20%7B%0A%20%20if%28%21insidePoly%28x%2Cy%2Cyy%29%29%0A%20%20%20break%3B%0A%20%20r++%3B%0A%20%20ox%3Dx%3B%0A%20%20x%3Dclampw%28a*%28x*cos%28b%29+sin%28b%29*y%29%29%3B%0A%20%20y%3Dclampw%28a*%28y*cos%28b%29-sin%28b%29*ox%29%29%3B%0A%20%7D%0A%20return%20r/5%3B%0A%7D%0A%0A"><img class="aligncenter size-full wp-image-194" title="piday" src="http://madtealab.com/blog/wp-content/uploads/piday.png" alt="piday" width="348" height="233" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://madtealab.com/blog/2010/03/happy-pi-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merry Christmas Hack!</title>
		<link>http://madtealab.com/blog/2009/12/merry-christmas-hack/</link>
		<comments>http://madtealab.com/blog/2009/12/merry-christmas-hack/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 02:17:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mad Tea Lab]]></category>

		<guid isPermaLink="false">http://madtealab.com/blog/?p=165</guid>
		<description><![CDATA[I had some fun creating a minimalistic font system! (maybe something like this should be included/supported in Mad Tea Lab?) Merry Christmas Everyone! (And a happy new year too ) (Note that the URL is longer than 2083 characters so it won&#8217;t work in IE, hehe, it&#8217;s the c64 font encoded as an array of [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-170" title="madtealab_font" src="http://madtealab.com/blog/wp-content/uploads/madtealab_font.jpg" alt="madtealab_font" width="473" height="209" /></p>
<p>I had some fun creating a <a href="http://madtealab.com/?C=1&amp;G=1&amp;R=0&amp;W=527&amp;GW=473&amp;GH=209&amp;GX=16.27405122635273&amp;GY=8.631640262532306&amp;GS=0.13312065311537485&amp;Rot=0.3880384531294442%2C-0.7992814228867186%2C0.6529862774516865&amp;EH=217&amp;aA=1&amp;aS=24.16&amp;Expr=var%20font%3D%5B%5B%5D%2C%5B1048576%2C269488144%2C16%5D%2C%5B0%2C671088640%2C40%5D%2C%5B673710080%2C679225468%2C40%5D%2C%5B1007681536%2C2013542464%2C16%5D%2C%5B1684275200%2C1277169672%2C76%5D%2C%5B609746944%2C336857172%2C8%5D%2C%5B0%2C808452096%2C48%5D%2C%5B270532608%2C268961800%2C32%5D%2C%5B268959744%2C270540832%2C8%5D%2C%5B268435456%2C273954900%5D%2C%5B268435456%2C269515792%5D%2C%5B808460304%5D%2C%5B0%2C31744%5D%2C%5B808452096%5D%2C%5B67371008%2C1075843080%2C64%5D%2C%5B1144520704%2C1147425868%2C56%5D%2C%5B272105472%2C403705872%2C16%5D%2C%5B75235328%2C1145059332%2C56%5D%2C%5B1144520704%2C1145057344%2C56%5D%2C%5B538968064%2C807959584%2C32%5D%2C%5B1144520704%2C71057472%2C124%5D%2C%5B1144520704%2C67386436%2C56%5D%2C%5B67371008%2C1075843080%2C124%5D%2C%5B1144520704%2C1145321540%2C56%5D%2C%5B1077411840%2C1145337920%2C56%5D%2C%5B805306368%2C808452144%5D%2C%5B807407616%2C808452144%5D%2C%5B270532608%2C268960776%2C32%5D%2C%5B0%2C8126588%5D%2C%5B134479872%2C135274512%2C4%5D%2C%5B1048576%2C606081040%2C24%5D%2C%5B70778880%2C1148474484%2C56%5D%2C%5B1145307136%2C675562620%2C16%5D%2C%5B1211891712%2C1212692552%2C60%5D%2C%5B1144520704%2C1141113860%2C56%5D%2C%5B1211891712%2C1212696648%2C60%5D%2C%5B75235328%2C67378180%2C124%5D%2C%5B67371008%2C67386372%2C124%5D%2C%5B1148715008%2C67396676%2C120%5D%2C%5B1145307136%2C1145338948%2C68%5D%2C%5B272105472%2C269488144%2C56%5D%2C%5B1144520704%2C1077952580%2C64%5D%2C%5B608436224%2C605293588%2C68%5D%2C%5B75235328%2C67372036%2C4%5D%2C%5B1145307136%2C1817465924%2C68%5D%2C%5B1145307136%2C1280599108%2C68%5D%2C%5B1144520704%2C1145324612%2C56%5D%2C%5B67371008%2C1145322500%2C60%5D%2C%5B609746944%2C1145324628%2C56%5D%2C%5B608436224%2C1145322516%2C60%5D%2C%5B1144520704%2C1141379104%2C56%5D%2C%5B269484032%2C269488144%2C124%5D%2C%5B1144520704%2C1145324612%2C68%5D%2C%5B672137216%2C1145324584%2C68%5D%2C%5B1816395776%2C1145328724%2C68%5D%2C%5B1145307136%2C1143476264%2C68%5D%2C%5B269484032%2C1143476240%2C68%5D%2C%5B75235328%2C1075843080%2C124%5D%2C%5B137887744%2C134744072%2C56%5D%2C%5B1077936128%2C67637280%2C4%5D%2C%5B540540928%2C538976288%2C56%5D%2C%5B0%2C675545088%2C16%5D%2C%5B8126464%5D%2C%5B0%2C268435456%2C32%5D%2C%5B1148715008%2C3686520%5D%2C%5B1144782848%2C71058500%2C4%5D%2C%5B70778880%2C3671044%5D%2C%5B1148715008%2C1081623620%2C64%5D%2C%5B70778880%2C3687548%5D%2C%5B134742016%2C134757384%2C48%5D%2C%5B1148731448%2C3687492%5D%2C%5B1145307136%2C71058500%2C4%5D%2C%5B272105472%2C1576976%2C16%5D%2C%5B539496448%2C2105376%2C32%5D%2C%5B337903616%2C69473292%2C4%5D%2C%5B272105472%2C269488144%2C24%5D%2C%5B1414791168%2C2905172%5D%2C%5B1145307136%2C3949636%5D%2C%5B1144520704%2C3687492%5D%2C%5B1006896132%2C3949636%5D%2C%5B1148731456%2C7881796%5D%2C%5B67371008%2C7605252%5D%2C%5B1077411840%2C7865400%5D%2C%5B1344274432%2C272109584%2C16%5D%2C%5B1148715008%2C4473924%5D%2C%5B672137216%2C4473896%5D%2C%5B1816395776%2C4478036%5D%2C%5B675545088%2C4466704%5D%2C%5B1148731448%2C4473924%5D%2C%5B142344192%2C8134672%5D%2C%5B270532608%2C269486096%2C32%5D%2C%5B269484032%2C269488144%2C16%5D%2C%5B268959744%2C269492240%2C8%5D%2C%5B0%2C542377984%5D%5D%3B%0A%0Afunction%20forEachSetBit%28a%2Cf%29%20%7B%0A%20var%20j%2Ci%2Cv%3B%0A%20for%28j%3D0%3Bj%3Ca.length%3Bj++%29%20%7B%0A%20%20v%3Da%5Bj%5D%3B%0A%20%20for%28i%3D0%3Bi%3C32%3Bi++%29%0A%20%20%20if%28%28v%3E%3Ei%29%261%29%0A%20%20%20%20f%28i+j*32%29%3B%0A%20%7D%0A%7D%0A%0Afunction%20plotBits%28a%2Cstride%29%20%7B%0A%20forEachSetBit%28a%2C%20function%28i%29%20%7B%0A%20%20var%20x%3Di%25stride%2Cy%3D%28i-x%29/stride%3B%0A%20%20rect%28x%2Cy%2C1%2C1%29%3B%0A%20%7D%20%29%3B%0A%7D%0A%0Afunction%20plotText%28t%29%20%7B%0A%20var%20i%3B%0A%20for%28i%3D0%3Bi%3Ct.length%3Bi++%29%20%7B%0A%20%20plotBits%28font%5Bt.charCodeAt%28i%29-32%5D%2C8%29%3B%0A%20%20translate%287%2C0%29%3B%0A%20%7D%0A%7D%0A%0Adraw%3Dfunction%28%29%0A%7B%0A%20var%20txt%3D%22%20%20%20%20%20%20%20%20%20%20%20%20%20Merry%20Christmas%21%20%20I%27m%20celebrating%20here%20with%20a%20minimalistic%20font-system-hack%21%22%3B%0A%20var%20i%2Cl%3Dtxt.length%2Cpos%3Da*l%2Cipos%3Dfloor%28pos%29%3B%0A%20noStroke%28%29%3B%0A%20fill%280%29%3B%0A%20rect%280%2C0%2Cwidth%2Cheight%29%3B%0A%20for%28i%3D0%3Bi%3C100%3Bi++%29%20%7B%0A%20%20fill%28255%2Chash%28i*55%29*100+50%29%3B%0A%20%20circle%28hash%28i%29*width+sin%28%28a*%281+hash%28i*300%29%29*20%29%29*3%2C%0A%20%20%20%20%20%20%20%20%20hash%28i*513%29*width+a*300*%281+hash%28i*43%29*3%29-480%2C%0A%20%20%20%20%20%20%20%20%201+2*hash%28i*43%29%29%3B%0A%20%7D%0A%20plotSpace%28%29%3B%0A%20fill%28255%2C30%2C0%29%3B%0A%20translate%28-7*%28pos-ipos%29%2C0%29%3B%0A%20plotText%28txt.substr%28ipos%2C15%29%29%0A%7D%0A%0A" target="_blank"><strong>minimalistic font system</strong></a>!  (maybe something like this should be included/supported in Mad Tea Lab?)</p>
<p><strong>Merry Christmas Everyone!</strong> (And a happy new year too <img src='http://madtealab.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>(Note that the URL is longer than 2083 characters so it won&#8217;t work in IE, hehe, it&#8217;s the c64 font encoded as an array of 32 bit ints that takes some bytes&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://madtealab.com/blog/2009/12/merry-christmas-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mad Tea Lab Public Beta!</title>
		<link>http://madtealab.com/blog/2009/11/mad-tea-lab-public-beta/</link>
		<comments>http://madtealab.com/blog/2009/11/mad-tea-lab-public-beta/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 23:28:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mad Tea Lab]]></category>

		<guid isPermaLink="false">http://madtealab.com/blog/?p=144</guid>
		<description><![CDATA[Hello and Welcome to Beta Testing! Go try out Mad Tea Lab right away, or check the links to the introducing articles. Feel free to leave general comments and questions under this this post, but also note that you can leave comments on the articles as well! What is Mad Tea Lab? Graphics in Mad [...]]]></description>
			<content:encoded><![CDATA[<p>Hello and Welcome to Beta Testing!</p>
<p>Go <a href="http://madtealab.com" target="_blank">try out Mad Tea Lab</a> right away, or check the links to the introducing articles. Feel free to leave general comments and questions under this this post, but also note that you can leave comments on the articles as well!</p>
<ul>
<li><a title="What is Mad Tea Lab?" href="http://madtealab.com/blog/introduction-to-mad-tea-lab/">What is Mad Tea Lab?</a></li>
<li><a title="Graphics in Mad Tea Lab" href="http://madtealab.com/blog/graphics-in-mad-tea-lab/">Graphics in Mad Tea Lab</a></li>
<li><a title="Sound in Mad Tea Lab" href="http://madtealab.com/blog/sound-in-mad-tea-lab/">Sound in Mad Tea Lab</a></li>
<li><a title="Which Browser is recommended?" href="http://madtealab.com/blog/which-browser-is-recommended/">Which Browser is recommended?</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://madtealab.com/blog/2009/11/mad-tea-lab-public-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

