<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Blogging for the Open Source Market</title>
	<atom:link href="http://kpangilinan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kpangilinan.wordpress.com</link>
	<description>$0.00 Source Code</description>
	<lastBuildDate>Fri, 01 Apr 2011 00:12:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='kpangilinan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Blogging for the Open Source Market</title>
		<link>http://kpangilinan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://kpangilinan.wordpress.com/osd.xml" title="Blogging for the Open Source Market" />
	<atom:link rel='hub' href='http://kpangilinan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Candy 0.7 Release</title>
		<link>http://kpangilinan.wordpress.com/2011/03/31/candy-0-7-release/</link>
		<comments>http://kpangilinan.wordpress.com/2011/03/31/candy-0-7-release/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 23:59:46 +0000</pubDate>
		<dc:creator>Kenneth Pangilinan</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Popcorn]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Video Effects]]></category>

		<guid isPermaLink="false">http://kpangilinan.wordpress.com/?p=149</guid>
		<description><![CDATA[Ok, so it&#8217;s been a week since Candy 0.6 release and I&#8217;ve been hacking away at popcorn.candy.js for the past few days now. I&#8217;ll make this post nice and short. Links Demos Candy 0.7 source code (Github) Candy wiki project page 0.6 &#8211;&#62; 0.7 changes Added cool demos Added unit testing Moved candy (effects) source [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=149&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ok, so it&#8217;s been a week since Candy 0.6 release and I&#8217;ve been hacking away at popcorn.candy.js for the past few days now. I&#8217;ll make this post nice and short.</p>
<h2>Links</h2>
<ul>
<li><a href="http://matrix.senecac.on.ca/~kpangilinan/candy/release/0_7/popcorn-js/plugins/candy/popcorn.candy.html">Demos</a></li>
<li><a href="https://github.com/kpangilinan/Candy/tree/0_7">Candy 0.7 source code</a> (Github)</li>
<li><a href="http://zenit.senecac.on.ca/wiki/index.php/Candy-js">Candy wiki project page</a></li>
</ul>
<h2>0.6 &#8211;&gt; 0.7 changes</h2>
<ul>
<li>Added cool demos</li>
<li>Added unit testing</li>
<li>Moved candy (effects) source code above Popcorn function</li>
<li>Combined pointillize-e + pointillize-r effects</li>
<li>Fixed pointillize var size + spacing bug</li>
<li>Added/Optimized/Completed rotate effect</li>
<li>Added new effect: noise</li>
<li>Added new effect: multi</li>
</ul>
<h2>What to expect for 0.8 release</h2>
<ul>
<li>A music video using Candy effects library</li>
<li>A complete and updated Wiki project page</li>
<li>OldTV effect (noise + grayscale)</li>
<li>Combine comic + comic-bw effects</li>
<li>Optimize sepia effect (it seems to have performance issues)</li>
<li>Optimize rotate effect (has issues with transitions)</li>
<li>Add default values to effects with options</li>
</ul>
<h2>Sample screenshots</h2>
<p><a href="http://kpangilinan.files.wordpress.com/2011/03/r.png"><img class="size-full wp-image-152 alignnone" title="r" src="http://kpangilinan.files.wordpress.com/2011/03/r.png?w=497" alt=""   /></a></p>
<p><a href="http://kpangilinan.files.wordpress.com/2011/03/gs.png"><img class="size-full wp-image-150 alignleft" title="gs" src="http://kpangilinan.files.wordpress.com/2011/03/gs.png?w=497" alt=""   /></a></p>
<p style="text-align:left;"><a href="http://kpangilinan.files.wordpress.com/2011/03/m.png"><img class="size-full wp-image-151" title="m" src="http://kpangilinan.files.wordpress.com/2011/03/m.png?w=497" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpangilinan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpangilinan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpangilinan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpangilinan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpangilinan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpangilinan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpangilinan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpangilinan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpangilinan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpangilinan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpangilinan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpangilinan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpangilinan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpangilinan.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=149&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpangilinan.wordpress.com/2011/03/31/candy-0-7-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b71caba614405884bc73393f69b77797?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpangilinan</media:title>
		</media:content>

		<media:content url="http://kpangilinan.files.wordpress.com/2011/03/r.png" medium="image">
			<media:title type="html">r</media:title>
		</media:content>

		<media:content url="http://kpangilinan.files.wordpress.com/2011/03/gs.png" medium="image">
			<media:title type="html">gs</media:title>
		</media:content>

		<media:content url="http://kpangilinan.files.wordpress.com/2011/03/m.png" medium="image">
			<media:title type="html">m</media:title>
		</media:content>
	</item>
		<item>
		<title>Candy 0.6 Release</title>
		<link>http://kpangilinan.wordpress.com/2011/03/24/candy-0-6-release/</link>
		<comments>http://kpangilinan.wordpress.com/2011/03/24/candy-0-6-release/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 14:13:32 +0000</pubDate>
		<dc:creator>Kenneth Pangilinan</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Video Effects]]></category>

		<guid isPermaLink="false">http://kpangilinan.wordpress.com/?p=141</guid>
		<description><![CDATA[It&#8217;s been awhile since my last post and release&#8230; still, better late than never. Right? 8P Okey well there has been a lot of bug fixes since 0.5 version. Here&#8217;s the 0.6 demo and repo. There are no more errors when a video runs because I&#8217;ve added a try-catch block to the main function: draw(). [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=141&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://kpangilinan.files.wordpress.com/2011/03/xray.png"><img class="alignright size-full wp-image-144" title="xray" src="http://kpangilinan.files.wordpress.com/2011/03/xray.png?w=497" alt=""   /></a>It&#8217;s been <em>awhile </em>since my last post and release&#8230; still, better late than never. Right? 8P</p>
<p>Okey well there has been a lot of bug fixes since <a href="http://kpangilinan.wordpress.com/2011/02/15/candy-0-5-release/">0.5 version</a>. Here&#8217;s the <a href="http://matrix.senecac.on.ca/~kpangilinan/candy/release/0_6/popcorn-js/plugins/candy/popcorn.candy.html">0.6 demo</a> and <a href="https://github.com/kpangilinan/Candy/tree/0_5">repo</a>. There are no more errors when a video runs because I&#8217;ve added a try-catch block to the main function: draw(). If any errors are caught the canvas will continuously keep trying to draw() until some of the video is rendered. Supposedly the <em>loadeddata </em>event listener should resolve the blank video bug I had in earlier versions, but I read in some forum that that listener is unpredictable sometimes. That&#8217;s why I turned to try-catch.</p>
<p>What else? Oh! The <strong>rotate effect</strong> has been added back in with no transition errors, as well as the <strong>RGB effect </strong>(optimized and working); this allows a user to control the level of Red, Green, and/or Blue in the video&#8230; an example of this would look like this:</p>
<pre>.candy({      
  start: 6, // seconds        
  end: 10, // seconds        
  filter: 'rgb|100|0|0'      
})</pre>
<p>So the above code would create Red saturated video.</p>
<p>The <strong>blur effect </strong> is also back and super optimized. I&#8217;m using a simple:</p>
<pre>c.globalAlpha = 0.05;</pre>
<p>to create a blurry&#8217;ish type of effect.</p>
<p>And lastly, the <strong>modulate effect</strong> has been added with no after effect to the video.</p>
<p>Two new effects that I added was a <strong>black/white comic effect </strong>and <strong>xray effect </strong>(black/white negative effect), which was obviously derived from <strong>comic and negative effects </strong><strong>respectively</strong>.</p>
<p><a href="http://kpangilinan.files.wordpress.com/2011/03/comic-bw.png"><img class="alignright size-full wp-image-143" title="comic-bw" src="http://kpangilinan.files.wordpress.com/2011/03/comic-bw.png?w=497" alt=""   /></a></p>
<p>To summarize the new AND improved video effects, here are the changes:</p>
<ul>
<li>Added rotate effect</li>
<li>Added and optimized RGB effect</li>
<li>Added and <em>optimized</em> Blur effect</li>
<li>Added and optimized modulate effect</li>
<li>Added black/white comic effect</li>
<li>Added xray effect</li>
</ul>
<p>As for previous code, I&#8217;ve continued to reduced the amount of global variables.</p>
<p>I&#8217;ve already start 0.7 (since I&#8217;m behind on releases), I&#8217;m thinking of adding an option to use multiple filters, for example: grayscale &amp; greenscreen effect. I&#8217;m continuing to optimize, and continue to hack into this code.</p>
<p>I will be meeting with <a href="http://vocamus.net/dave/">Dave Humphrey</a> later on today to get some feedback on what he expects to see in the final version, Candy 1.0.</p>
<p>Well, till next time! =]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpangilinan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpangilinan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpangilinan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpangilinan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpangilinan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpangilinan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpangilinan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpangilinan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpangilinan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpangilinan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpangilinan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpangilinan.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpangilinan.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpangilinan.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=141&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpangilinan.wordpress.com/2011/03/24/candy-0-6-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b71caba614405884bc73393f69b77797?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpangilinan</media:title>
		</media:content>

		<media:content url="http://kpangilinan.files.wordpress.com/2011/03/xray.png" medium="image">
			<media:title type="html">xray</media:title>
		</media:content>

		<media:content url="http://kpangilinan.files.wordpress.com/2011/03/comic-bw.png" medium="image">
			<media:title type="html">comic-bw</media:title>
		</media:content>
	</item>
		<item>
		<title>Candy 0.5 Release</title>
		<link>http://kpangilinan.wordpress.com/2011/02/15/candy-0-5-release/</link>
		<comments>http://kpangilinan.wordpress.com/2011/02/15/candy-0-5-release/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 04:43:05 +0000</pubDate>
		<dc:creator>Kenneth Pangilinan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kpangilinan.wordpress.com/?p=137</guid>
		<description><![CDATA[Today is about love, chocolate&#8230; and Candy 0.5! It&#8217;s final, Candy 0.5 has been released. Check out the demo and fork the repo from github. What&#8217;s new? Added most of the effects from 0.1-0.3 Candy releases Reduced amount of global variables&#8230; this is still an issue that is being worked on Optimized some code in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=137&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><span style="color:#ff0000;">Today is about love, chocolate&#8230; and Candy 0.5!</span></h2>
<p><a href="http://kpangilinan.files.wordpress.com/2011/02/0-5-demo.jpg"><img class="alignright size-full wp-image-138" title="0-5-demo" src="http://kpangilinan.files.wordpress.com/2011/02/0-5-demo.jpg?w=497" alt=""   /></a>It&#8217;s final, Candy 0.5 has been released. Check out the <a href="http://matrix.senecac.on.ca/~kpangilinan/candy/release/0_5/popcorn-js/plugins/candy/popcorn.candy.html">demo</a> and fork the repo from <a href="https://github.com/kpangilinan/Candy/tree/0_5">github</a>.</p>
<h2>What&#8217;s new?</h2>
<ul>
<li>Added <em>most</em> of the effects from 0.1-0.3 Candy releases</li>
<li>Reduced amount of global variables&#8230; this is still an issue that is being worked on</li>
<li>Optimized <em>some</em> code in the effects</li>
</ul>
<h2>What to look for?</h2>
<ul>
<li>Add/fix rest of video effects left out of Candy 0.5</li>
<li>Reduce variables used in video effect source code</li>
<li>Work on new architecture for adding/using video effects</li>
<li>Add transitional video effects (fade in, fade out, etc.)?</li>
<li>Use WebGL and CSS for video effects?</li>
</ul>
<p>Till next time! 8)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpangilinan.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpangilinan.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpangilinan.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpangilinan.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpangilinan.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpangilinan.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpangilinan.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpangilinan.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpangilinan.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpangilinan.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpangilinan.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpangilinan.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpangilinan.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpangilinan.wordpress.com/137/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=137&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpangilinan.wordpress.com/2011/02/15/candy-0-5-release/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b71caba614405884bc73393f69b77797?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpangilinan</media:title>
		</media:content>

		<media:content url="http://kpangilinan.files.wordpress.com/2011/02/0-5-demo.jpg" medium="image">
			<media:title type="html">0-5-demo</media:title>
		</media:content>
	</item>
		<item>
		<title>Candy @ Version 0.4.5</title>
		<link>http://kpangilinan.wordpress.com/2011/02/14/candy-version-0-4-5/</link>
		<comments>http://kpangilinan.wordpress.com/2011/02/14/candy-version-0-4-5/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 15:38:53 +0000</pubDate>
		<dc:creator>Kenneth Pangilinan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kpangilinan.wordpress.com/?p=135</guid>
		<description><![CDATA[Back again with a minor release. I am hoping to finish up 0.5 release by tonight. But I am currently having problems with adding a few of the effects I created in 0.3 (pixelate, pointillize, modulate, etc.) to the new plug-in architecture. Here is the current demo I have so far. For Candy 0.5, I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=135&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Back again with a minor release. I am hoping to finish up 0.5 release by tonight. But I am currently having problems with adding a few of the effects I created in 0.3 (pixelate, pointillize, modulate, etc.) to the new plug-in architecture. Here is the <a href="http://matrix.senecac.on.ca/~kpangilinan/candy/release/0_5/popcorn-js/plugins/candy/popcorn.candy.html">current demo</a> I have so far. For Candy 0.5, I still need to fix these bugs:</p>
<ul>
<li>rotate effect</li>
<li>tilt-shift effect</li>
<li>rgb effect ( only optimize)</li>
<li>blur effect</li>
<li>pointillize effect</li>
<li>pixelate effect</li>
<li>modulate effect</li>
<li>disperse effect (and optimize)</li>
<li>when user clicks on video timeline &lt;canvas&gt; freezes</li>
</ul>
<p>Every time I add one of the effects above, the &lt;canvas&gt; will freeze when done using it. This seems like a lot of work to do, but once I fix one of those effects, I&#8217;ll understand how to fix the rest of them. Ok, back to work&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpangilinan.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpangilinan.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpangilinan.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpangilinan.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpangilinan.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpangilinan.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpangilinan.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpangilinan.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpangilinan.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpangilinan.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpangilinan.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpangilinan.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpangilinan.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpangilinan.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=135&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpangilinan.wordpress.com/2011/02/14/candy-version-0-4-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b71caba614405884bc73393f69b77797?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpangilinan</media:title>
		</media:content>
	</item>
		<item>
		<title>6 Advanced JavaScript Techniques You Should Know</title>
		<link>http://kpangilinan.wordpress.com/2011/02/10/6-advanced-javascript-techniques-you-should-know/</link>
		<comments>http://kpangilinan.wordpress.com/2011/02/10/6-advanced-javascript-techniques-you-should-know/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 21:52:44 +0000</pubDate>
		<dc:creator>Kenneth Pangilinan</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://kpangilinan.wordpress.com/?p=132</guid>
		<description><![CDATA[Check out this awesome/helpful blog post I found (for JavaScript programmers): http://sixrevisions.com/javascript/6-advanced-javascript-techniques-you-should-know/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=132&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Check out this awesome/helpful blog post I found (for JavaScript programmers): <a href="http://sixrevisions.com/javascript/6-advanced-javascript-techniques-you-should-know/">http://sixrevisions.com/javascript/6-advanced-javascript-techniques-you-should-know/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpangilinan.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpangilinan.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpangilinan.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpangilinan.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpangilinan.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpangilinan.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpangilinan.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpangilinan.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpangilinan.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpangilinan.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpangilinan.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpangilinan.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpangilinan.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpangilinan.wordpress.com/132/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=132&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpangilinan.wordpress.com/2011/02/10/6-advanced-javascript-techniques-you-should-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b71caba614405884bc73393f69b77797?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpangilinan</media:title>
		</media:content>
	</item>
		<item>
		<title>Candy 0.5 on its way</title>
		<link>http://kpangilinan.wordpress.com/2011/02/08/candy-0-5-on-its-way/</link>
		<comments>http://kpangilinan.wordpress.com/2011/02/08/candy-0-5-on-its-way/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 14:12:14 +0000</pubDate>
		<dc:creator>Kenneth Pangilinan</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Popcorn]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Video Effects]]></category>

		<guid isPermaLink="false">http://kpangilinan.wordpress.com/?p=125</guid>
		<description><![CDATA[I haven&#8217;t blogged in awhile, that&#8217;s why I&#8217;m letting out two posts today. This is basically a progress update on Candy (a Popcorn plugin). I&#8217;ve been working on Candy 0.5 for a week now, little by little. You should expect to see most of the effects from 0.1-0.3 releases: I will also be adding unit [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=125&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t blogged in awhile, that&#8217;s why I&#8217;m letting out two posts today. This is basically a progress update on <a href="http://zenit.senecac.on.ca/wiki/index.php/Candy-js">Candy</a> (a <a href="http://popcornjs.org/">Popcorn</a> plugin).</p>
<p>I&#8217;ve been working on Candy 0.5 for a week now, little by little. You should expect to see most of the effects from 0.1-0.3 releases:</p>
<p><a href="http://kpangilinan.files.wordpress.com/2011/02/old-effects.png"><img class="aligncenter size-full wp-image-127" title="old-effects" src="http://kpangilinan.files.wordpress.com/2011/02/old-effects.png?w=497&#038;h=299" alt="" width="497" height="299" /></a></p>
<p>I will also be adding unit testing. Hmmm? What else? Oh, and optimized code. It will be a very small release, but at the same time it will show off what the Candy plugin is capable of.</p>
<p>Keep an eye out on my blog this weekend, I plan to release Candy 0.5. Well, till next time! 8)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpangilinan.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpangilinan.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpangilinan.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpangilinan.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpangilinan.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpangilinan.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpangilinan.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpangilinan.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpangilinan.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpangilinan.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpangilinan.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpangilinan.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpangilinan.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpangilinan.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=125&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpangilinan.wordpress.com/2011/02/08/candy-0-5-on-its-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b71caba614405884bc73393f69b77797?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpangilinan</media:title>
		</media:content>

		<media:content url="http://kpangilinan.files.wordpress.com/2011/02/old-effects.png" medium="image">
			<media:title type="html">old-effects</media:title>
		</media:content>
	</item>
		<item>
		<title>Candy 0.4 Bug Fix</title>
		<link>http://kpangilinan.wordpress.com/2011/02/08/candy-0-4-bug-fix/</link>
		<comments>http://kpangilinan.wordpress.com/2011/02/08/candy-0-4-bug-fix/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 13:45:00 +0000</pubDate>
		<dc:creator>Kenneth Pangilinan</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://kpangilinan.wordpress.com/?p=119</guid>
		<description><![CDATA[About a week and half ago I released Candy 0.4, I mentioned to Dave Humphrey that I blogged about the release and sent the link to the demo via IRC #popcorn channel. Obviously Dave wasn&#8217;t the only one who clicked on the link. I got a response from one of the members on that channel [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=119&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">About a week and half ago I released Candy 0.4,<strong> </strong> I mentioned to <a href="http://vocamus.net/dave/">Dave Humphrey</a> that I <a href="http://kpangilinan.wordpress.com/2011/01/27/candy-0-4-release-plugin-for-popcorn-js/">blogged about the release</a> and sent the link to <a href="http://matrix.senecac.on.ca/~kpangilinan/candy/release/0_4/popcorn-js/plugins/candy/popcorn.candy.html">the demo</a> via <a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat">IRC</a> #popcorn channel. Obviously Dave wasn&#8217;t the only one who clicked on the link. I got a response from one of the members on that channel that my demo wasn&#8217;t working on <a href="http://www.mozilla.com/en-US/firefox/">Firefox</a>. And I just realized that I overlooked testing the demo on Firefox, maybe because I was testing  it on <a href="http://www.mozilla.org/projects/minefield/">Minefield</a>, which worked perfectly. I also tested it on <a href="http://www.google.com/chrome">Chrome</a>, which worked just as fine. In Firefox, my <a href="http://en.wikipedia.org/wiki/Canvas_element">&lt;canvas&gt;</a> wasn&#8217;t receiving any data from the <a href="http://en.wikipedia.org/wiki/HTML5_video">&lt;video&gt;</a> tag when play was pressed. Here is the error I got:</p>
<p style="text-align:left;"><a href="http://kpangilinan.files.wordpress.com/2011/02/0_4-error1.png"><img class="aligncenter size-full wp-image-121" title="0_4-error" src="http://kpangilinan.files.wordpress.com/2011/02/0_4-error1.png?w=497&#038;h=314" alt="" width="497" height="314" /></a></p>
<p style="text-align:left;">I assumed that the <em>play</em> event was sending rendered data to the &lt;canvas&gt; tag already, I was totally wrong. So I did some research by Googling the failure code above and found a video event listener called <em>loadeddata</em>. It was exactly what I needed for this bug. I wrapped the <em>play </em>event around the<em> loadeddata</em> event:</p>
<p style="text-align:left;"><a href="http://kpangilinan.files.wordpress.com/2011/02/0_4-error-fix.png"><img class="aligncenter size-full wp-image-123" title="0_4-error-fix" src="http://kpangilinan.files.wordpress.com/2011/02/0_4-error-fix.png?w=497&#038;h=67" alt="" width="497" height="67" /></a></p>
<p style="text-align:left;">&lt;canvas&gt; will now wait for the &lt;video&gt; to press play AND render data before applying any <em><strong>Candy</strong></em> to the &lt;canvas&gt;.</p>
<div id="_mcePaste" class="mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;overflow:hidden;"><img src="/Users/Kenny/AppData/Local/Temp/moz-screenshot.png" alt="" /></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpangilinan.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpangilinan.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpangilinan.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpangilinan.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpangilinan.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpangilinan.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpangilinan.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpangilinan.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpangilinan.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpangilinan.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpangilinan.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpangilinan.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpangilinan.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpangilinan.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=119&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpangilinan.wordpress.com/2011/02/08/candy-0-4-bug-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b71caba614405884bc73393f69b77797?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpangilinan</media:title>
		</media:content>

		<media:content url="http://kpangilinan.files.wordpress.com/2011/02/0_4-error1.png" medium="image">
			<media:title type="html">0_4-error</media:title>
		</media:content>

		<media:content url="http://kpangilinan.files.wordpress.com/2011/02/0_4-error-fix.png" medium="image">
			<media:title type="html">0_4-error-fix</media:title>
		</media:content>
	</item>
		<item>
		<title>Candy 0.4 Release &#8211; Plugin for Popcorn.js</title>
		<link>http://kpangilinan.wordpress.com/2011/01/27/candy-0-4-release-plugin-for-popcorn-js/</link>
		<comments>http://kpangilinan.wordpress.com/2011/01/27/candy-0-4-release-plugin-for-popcorn-js/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 16:27:44 +0000</pubDate>
		<dc:creator>Kenneth Pangilinan</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Popcorn]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Video Effects]]></category>

		<guid isPermaLink="false">http://kpangilinan.wordpress.com/?p=113</guid>
		<description><![CDATA[As you all may know (or not), Popcorn.js has recently been re-written entirely. It now uses a plugin architecture to allow developers to easily add functionality to the library. I have been working on the Candy.js (HTML5 video effects) library for 5 months, and now that Popcorns library has room for plugins I have ported [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=113&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As you all may know (or not), <a href="http://popcornjs.org/">Popcorn.js</a> has recently been re-written entirely. It now uses a plugin architecture to allow developers to easily add functionality to the library. I have been working on the <a href="http://zenit.senecac.on.ca/wiki/index.php/Candy-js">Candy.js (HTML5 video effects) library</a> for 5 months, and now that Popcorns library has room for plugins I have ported my code into the plugin architecture.</p>
<p>Check out the demo <a href="http://matrix.senecac.on.ca/~kpangilinan/candy/release/0_4/popcorn-js/plugins/candy/popcorn.candy.html">here</a>.</p>
<h2>How to Use Candy Plugin</h2>
<p>It&#8217;s possible that this small tutorial may change as new releases come out. But here goes&#8230;</p>
<ol>
<li><a href="https://github.com/mozilla/popcorn-js">Download Popcorn</a> from GitHub</li>
<li>Download <a href="https://github.com/kpangilinan/Candy/tree/0_4">Candy 0.4 Plugin</a> from Github and save <strong>candy</strong> folder into Popcorns plugin folder (<strong>popcorn-js\plugins\</strong>)</li>
<li>In your HTML page &lt;head&gt; tag:</li>
<p>&lt;script src=&#8221;../../popcorn.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script src=&#8221;popcorn.candy.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script&gt;<br />
document.addEventListener(&#8216;DOMContentLoaded&#8217;, function () {<br />
var p = Popcorn(&#8216;#video&#8217;)<br />
.play()<br />
.candy({<br />
start: [<strong><em>SECONDS</em></strong>], // seconds to start<br />
end: [<strong><em>SECONDS</em></strong>], // seconds to end<br />
filter: &#8216;[<strong><em>EFFECT</em></strong>]&#8216; //video effect from start to end<br />
} )<br />
}, false);<br />
&lt;/script&gt;</p>
<li>In your HTML page &lt;body&gt; tag:</li>
<p>&lt;video src=&#8221;[<strong><em>URL</em></strong>]&#8221; width=&#8221;[<strong><em>WIDTH</em></strong>] height=[<strong><em>HEIGHT</em></strong>] /&gt;</ol>
<p>Currently the Candy library only has two effects: grayscale and emboss. Here is the <a href="http://matrix.senecac.on.ca/~kpangilinan/candy/release/0_3/">0.3 Candy release demo</a>, which has tons more of effects, they&#8217;re being ported as soon as I finish optimizing 0.4. Expect all the effects to be added in 0.5 release.</p>
<p>Please give the Candy Plugin a try and leave some feedback or add/edit/delete whatever you want in popcorn.candy.js. It&#8217;ll help in the development of the project. And if your running into any problems just ping me on IRC: kpangilinan, I&#8217;m normally on #seneca and #popcorn channels.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpangilinan.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpangilinan.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpangilinan.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpangilinan.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpangilinan.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpangilinan.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpangilinan.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpangilinan.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpangilinan.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpangilinan.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpangilinan.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpangilinan.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpangilinan.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpangilinan.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=113&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpangilinan.wordpress.com/2011/01/27/candy-0-4-release-plugin-for-popcorn-js/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b71caba614405884bc73393f69b77797?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpangilinan</media:title>
		</media:content>
	</item>
		<item>
		<title>Candy.js 0.3 and Beyond</title>
		<link>http://kpangilinan.wordpress.com/2011/01/16/candy-js-0-3-and-beyond/</link>
		<comments>http://kpangilinan.wordpress.com/2011/01/16/candy-js-0-3-and-beyond/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 23:03:55 +0000</pubDate>
		<dc:creator>Kenneth Pangilinan</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Video Effects]]></category>

		<guid isPermaLink="false">http://kpangilinan.wordpress.com/?p=110</guid>
		<description><![CDATA[Classes Begin&#8230; A week a of classes has passed and already I can see where things are going in terms of work load &#8212; it&#8217;s going to be a stressful =[ but fun semester =]. Being in my eight and last semester at Seneca College I only have two exams, which is not necessarily a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=110&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><span style="color:#993300;">Classes Begin&#8230;</span></h2>
<p>A week a of classes has passed and already I can see where things are going in terms of work load &#8212; it&#8217;s going to be a stressful =[ but fun semester =]. Being in my eight and last semester at <a href="http://www.senecac.on.ca/">Seneca College</a> I only have two exams, which is not necessarily a good thing because those exams that I don&#8217;t need to take are converted into BIG semester projects. I know for a fact that my time and organization skills will play a big role in my success this semester.</p>
<p>Ok. Enough venting about my work load, and on to what I plan to do with the existing <a href="https://github.com/kpangilinan/Candy/tree/0_3">Candy.js 0.3 library</a>.</p>
<h2><span style="color:#003366;">Introduction to DPS911&#8230;</span></h2>
<p>On Tuesday I met with <a href="http://vocamus.net/dave/">Dave Humphrey</a> and <a href="http://twitter.com/annasob">Anna Sobiepanek</a>. Dave gave me a brief introduction to <a href="https://scs.senecac.on.ca/course/dps911">DPS911 &#8211; Open Source Project</a>, &#8220;this course builds on the skills and knowledge developed in <a href="https://scs.senecac.on.ca/course/dps909">DPS909</a> by  having the student take a partially developed open source project to  completion. The student must have an open source project in progress,  along with a faculty mentor and coordinator approval, in order to  enroll. The student will learn what is necessary to take a working  program and polish, refactor, and improve it on the way to making 1.0  product release&#8221;.</p>
<p>Dave also gave me a general idea of what he sees for Candy version 1.0 (plug-in architecture, use of WebGL, re-factored/optimized code), what he expects from me this semester (weekly blog post, bi-weekly meeting w/ Anna and himself, and a bi-weekly release of Candy.js) and lastly he gave me a few directions on where to start with all of this. He directed me to Anna, Anna sent me a few links to look at to familiarize myself with the new <a href="http://popcornjs.org/butter/">Butter.js</a> and <a href="http://www.drumbeat.org/content/popcorn-js-semantic-video-demo">Popcorn.js</a> plug-in architecture source code.</p>
<h2><span style="color:#008000;">My Plan</span></h2>
<ul>
<li>One or more weekly blog posts to encourage open source community to get involved</li>
<li>Meet bi-weekly for project status updates with Dave and Anna</li>
<li>Collaborate with CDOT: Dave, Anna, <a href="http://scottdowne.wordpress.com/">Scott Downe</a>, <a href="http://sonnilion.wordpress.com/">Matthew Postil</a></li>
<li>Designate a consistent time to work on DPS911 in my busy semester schedule</li>
<li>Understand how Butter.js and Popcorn.js source code works, specifically the new plug-in code</li>
<li>Develop my project management skills</li>
<li>Develop a greater understanding of <a href="http://en.wikipedia.org/wiki/JavaScript">JavaScript</a></li>
<li>***Pass DPS911***</li>
<li>And&#8230; have fun!</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpangilinan.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpangilinan.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpangilinan.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpangilinan.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpangilinan.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpangilinan.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpangilinan.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpangilinan.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpangilinan.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpangilinan.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpangilinan.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpangilinan.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpangilinan.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpangilinan.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=110&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpangilinan.wordpress.com/2011/01/16/candy-js-0-3-and-beyond/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b71caba614405884bc73393f69b77797?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpangilinan</media:title>
		</media:content>
	</item>
		<item>
		<title>Candy 0.3 Release</title>
		<link>http://kpangilinan.wordpress.com/2010/12/12/candy-0-3-release/</link>
		<comments>http://kpangilinan.wordpress.com/2010/12/12/candy-0-3-release/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 16:35:30 +0000</pubDate>
		<dc:creator>Kenneth Pangilinan</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Video Effects]]></category>

		<guid isPermaLink="false">http://kpangilinan.wordpress.com/?p=100</guid>
		<description><![CDATA[Straight to the knitty gritty, click here for my demo if you don&#8217;t want to read about my experience and details on the Candy.js project. Here are two other useful links on Candy: Candy project wiki page Candy.js GIT Hub It&#8217;s here once again! New and improved: Candy 0.3 &#8212; the HTML5 video effects extension [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=100&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Straight to the knitty gritty, click <a href="http://matrix.senecac.on.ca/~kpangilinan/candy/release/0_3/">here</a> for my demo if you don&#8217;t want to read about my experience and details on the Candy.js project. Here are two other useful links on Candy:</p>
<ul>
<li><a href="http://zenit.senecac.on.ca/wiki/index.php/Candy-js">Candy project wiki page</a></li>
<li><a href="https://github.com/kpangilinan/Candy/tree/0_3">Candy.js GIT Hub</a></li>
</ul>
<p>It&#8217;s here once again! New and improved: Candy 0.3 &#8212; the HTML5 video effects extension to <a href="http://mozilla.github.com/popcorn-js/">Popcorn.js</a>. Before I begin to get into the effects and the functionality of the library and my experience working on this project. Let me say <strong>how this all started</strong>:</p>
<p>When the project launched in September, I was introduced to <a href="http://www.etherworks.ca/">Brett Gaylor</a> (team lead for the <a href="http://www.drumbeat.org/webmademovies">WebMadeMovies project</a>) via email by <a href="http://vocamus.net/dave/">Dave Humphrey</a> (my professor for <a href="https://scs.senecac.on.ca/course/dps909">DPS909: Topics in Open Source Development</a>). Daves initial assignment for me was to create a few simple effects to work/learn off from:<br />
* Make the video black and white<br />
* Make the video sepia tone<br />
* Flip the video horizontal, vertical, etc.<br />
* Add interlacing lines, to make it look like an old TV</p>
<p>And Bretts initial assignment for me was to create a pointillize effect, an effect that transforms an image into a series of uniformly colored dots. <a href="http://colmertech.com/support/help/pixamajig1/ImagePointillize.htm">http://colmertech.com/support/help/pixamajig1/ImagePointillize.htm</a> &lt;&#8211;Exact link Brett sent me.</p>
<p>Black and white, sepia tone, rotating the video, and interlacing lines&#8230; piece of cake! I was able to create those effects (plus more) in Candy 0.1. In 0.2 it was about dynamic effects and brightness controlling. But still no pointilling video effects. It wasn&#8217;t until <a href="http://zenit.senecac.on.ca/wiki/index.php/User:Blaw1">Brian Law</a> (a fellow colleague and <a href="http://zenit.senecac.on.ca/wiki/index.php/Comicbook-js">ComicBook.js</a> author) presented a <a href="http://matrix.senecac.on.ca/~blaw1/osd600/0-2/example.html">demo</a> in class that I figured it all out. Brian based his code off of <a href="http://desandro.com/resources/close-pixelate/">this code</a>. But even though it was a working demo, I still felt it shouldn&#8217;t have been as complex to create (no matter how crazy the video effect looked). So I asked myself the obvious question, &#8220;How are they doing that?&#8221; It was simple!</p>
<p>In pseudo code:</p>
<ul>
<li>loop through x axisof frame
<ul>
<li>loop through y axis frame (this was to cover the whole image frame and not miss out on any pixels)</li>
</ul>
</li>
<li>store the color from position x,y</li>
<li>apply color to shape and draw it onto &lt;canvas&gt;</li>
<li>move to next video frame</li>
</ul>
<p>Simple or what!? Obviously there&#8217;s more to it than that but that&#8217;s the main core of the code. From here I realized the potential of this code and I felt like I could manipulate and create any effect I wanted to! So yes, pointillize effect is apart of the Candy library (ver. 0.3). Along with these other <strong>effects</strong>:</p>
<ul>
<li>Comic -Darkens the dark, lightens the light, makes it look cartoony</li>
<li>Grayscale -Black and white effect</li>
<li>Sepia -Dark brown grey color filter</li>
<li>Green Screen &#8211; Replaces green screen background for an image</li>
<li>Rotate &#8211; Flips the video horizontally</li>
<li>Negative -Turns positive RGB video colors into negative RGB</li>
<li>Bright &#8211; Control brightness and darkness of video</li>
<li>Emboss &#8211; Video is molded or carved in relief</li>
<li>Tilt-Shift &#8211; refers to the use of <a title="View camera" href="http://en.wikipedia.org/wiki/View_camera#Movements">camera movements</a> on small- and medium-format cameras, and sometimes specifically refers to the use of tilt for <a title="Depth of field" href="http://en.wikipedia.org/wiki/Depth_of_field#Limited_DOF:_selective_focus">selective focus</a>, often for simulating a <a title="Miniature faking" href="http://en.wikipedia.org/wiki/Miniature_faking">miniature scene</a>.</li>
<li>Blur &#8211; Defocus on video</li>
<li>RGB Filter &#8211; Manually add/subtract to RGB values</li>
<li>Modulate &#8211; varies the brightness of an image&#8217;s pixels in a periodic way.   It can be used add &#8220;Venitian blind&#8221;, &#8220;scanline&#8221; or &#8220;mesh&#8221; type effects.</li>
<li>Pixelate &#8211; transforms an image into a grid of uniformly colored rectangles.   So named because it simulates increasing the size of pixels in the image.</li>
<li>Disperse -Spreads/Scatters pixels from original video</li>
</ul>
<p>Here&#8217;s how to apply these effects to your &lt;video&gt; tag in your HTML in three simple steps:</p>
<ol>
<li><strong>Download <a href="https://github.com/kpangilinan/Candy">candy.js</a><br />
</strong></li>
<li><strong>Import library</strong> into your header
<ul>
<li>
<pre>&lt;<span class="start-tag">head</span>&gt;
    &lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript" </span><span class="attribute-name">src</span>="candy.js"&gt;&lt;/<span class="end-tag">script</span>&gt;
&lt;/<span class="end-tag">head</span>&gt;</pre>
</li>
</ul>
</li>
<li>Place <strong>&lt;video&gt;</strong> tag  with these <strong>mandatory attribute </strong>into the &lt;body&gt;: src=&#8221;[URL]&#8221; + id=&#8221;candy&#8221; + data-apply-effect=&#8221;[<a href="http://matrix.senecac.on.ca/~kpangilinan/candy/release/0_3/list-of-effects.xhtml">EFFECT</a>]&#8221; + width=&#8221;[WIDTH]&#8221; + height=&#8221;[HEIGHT]&#8221;
<ul>
<li>&lt;<span class="start-tag">video</span><span class="attribute-name"> id</span>=<span class="attribute-value">&#8220;candy&#8221; </span><span class="attribute-name">src</span>=&#8221;bunny.ogv&#8221; <span class="attribute-name">data-apply-effect</span>=<span class="attribute-value">&#8220;comic&#8221; </span><span class="attribute-name">width</span>=<span class="attribute-value">&#8220;800&#8243; </span><span class="attribute-name">height</span>=<span class="attribute-value">&#8220;500&#8243;</span><span class="attribute-value"> </span><span class="attribute-name">/</span>&gt;</li>
</ul>
</li>
</ol>
<p><strong>Note:</strong> Candy is supported only with HTML5 video formats</p>
<p>Being a 7th semester <a href="http://www.senecac.on.ca/fulltime/BSD.html">BSD (Bachelor of Software Development)</a> student, this project, this course, this programming language, this style of learning was a surprising all new <strong>experience </strong>to me. So in other words, a lot of learning/researching was needed here. Candy was written in <a href="http://en.wikipedia.org/wiki/JavaScript">javascript</a>, at the beginning of the course I had no  knowledge of javascript whatsoever and it was until the last month of the semester Dave started teaching us javascript &#8212; and I *think I understand why he taught us so late in the semester. He was pushing to use the open source community. He wanted us to research things on our own and whenever we hit a brick wall he wanted us to get on <a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat">IRC</a> and ask questions or fork other developers source code from <a href="https://github.com/">GIT Hub</a> and try to implement it into your own code &#8212; he wanted us to use the open source community as a resource!</p>
<p>Overall this was a great learning experience&#8230;</p>
<p>I now look forward to <a href="https://scs.senecac.on.ca/course/dps911">DPS911 &#8211; Open Source Project</a>. Candy 1.0?</p>
<div id="_mcePaste" class="mcePaste" style="position:absolute;left:-10000px;top:931px;width:1px;height:1px;overflow:hidden;">
<pre>    &lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript;version=1.8" </span><span class="attribute-name">src</span>="<a href="http://matrix.senecac.on.ca/%7Ekpangilinan/candy/release/0_3/candy.js">../candy.js</a>"&gt;&lt;/<span class="end-tag">script</span>&gt;</pre>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kpangilinan.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kpangilinan.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kpangilinan.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kpangilinan.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kpangilinan.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kpangilinan.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kpangilinan.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kpangilinan.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kpangilinan.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kpangilinan.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kpangilinan.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kpangilinan.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kpangilinan.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kpangilinan.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kpangilinan.wordpress.com&amp;blog=15785083&amp;post=100&amp;subd=kpangilinan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kpangilinan.wordpress.com/2010/12/12/candy-0-3-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b71caba614405884bc73393f69b77797?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kpangilinan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
