<?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>Altryne's Blog &#187; html5</title> <atom:link href="http://alexw.me/tags/html5/feed/" rel="self" type="application/rss+xml" /><link>http://alexw.me</link> <description>Not everyday I get to learn "nothing"</description> <lastBuildDate>Sat, 28 May 2011 20:29:51 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>Pure css3 analog clock (with a little cheat)</title><link>http://alexw.me/2010/06/pure-css3-analog-clock-with-a-little-cheat/</link> <comments>http://alexw.me/2010/06/pure-css3-analog-clock-with-a-little-cheat/#comments</comments> <pubDate>Fri, 04 Jun 2010 20:01:08 +0000</pubDate> <dc:creator>Altryne</dc:creator> <category><![CDATA[Playing with stuff]]></category> <category><![CDATA[Amazing]]></category> <category><![CDATA[Css]]></category> <category><![CDATA[html5]]></category> <guid
isPermaLink="false">http://alexw.me/?p=222</guid> <description><![CDATA[I love css3, have I told you already? Love it. Anyway, I wanted to see what I can do with transitions and animations in webkit, and I made this : Click the Image to see the live demo Support : Firefox + Webkit browsers In firefox I use javascript to move the properties In Webkit, [...]]]></description> <content:encoded><![CDATA[<p>I love css3, have I told you already? Love it.</p><p>Anyway, I wanted to see what I can do with transitions and animations in webkit, and I made this :</p><div
id="attachment_223" class="wp-caption aligncenter" style="width: 371px"><a
href="http://alexw.me/playground/cssclock.html"><img
class="size-full wp-image-223 " title="Click Here to see it live in action" src="http://alexw.me/wp-content/uploads/2010/06/clockthumb.jpg" alt="" width="361" height="414" /></a><p
class="wp-caption-text">Css only (well almost) analog clock</p></div><p>Click the Image to see the<strong> </strong><a
href="http://alexw.me/playground/cssclock.html"><strong>live demo</strong></a></p><h3><strong>Support</strong> :</h3><p>Firefox + Webkit browsers<br
/> In firefox I use javascript to move the properties<br
/> In Webkit, all the animation and the calculation is in CSS!!<br
/> I did cheat however : I used js to determine the current  time. Now way to do that in css.             I didn&#8217;t want to include jquery here, as u can see all the  code is pure js, but I had to because it&#8217;s dufficult to do browser  detection properly with js.</p><h3><strong>Lessons learned</strong> :</h3><ul><li> CSS3 is awesome!! Especially the way webkit does it  (transitions, animations)<br
/> But it still has a LONG way to go untill we see  compability cross browsers</li><li> In Safari and Mobile safari, the arrows were jagged  untill I gave the css-shadow, So it seems that                 giving this property turns on antialiasing somehow. Cool</li></ul> ]]></content:encoded> <wfw:commentRss>http://alexw.me/2010/06/pure-css3-analog-clock-with-a-little-cheat/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Html5 video puzzle &#8211; proof of concept</title><link>http://alexw.me/2010/05/html5-video-puzzle-proof-of-concept/</link> <comments>http://alexw.me/2010/05/html5-video-puzzle-proof-of-concept/#comments</comments> <pubDate>Thu, 27 May 2010 21:30:10 +0000</pubDate> <dc:creator>Altryne</dc:creator> <category><![CDATA[Playing with stuff]]></category> <category><![CDATA[canvas]]></category> <category><![CDATA[Css]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[jQuery]]></category> <guid
isPermaLink="false">http://alexw.me/?p=210</guid> <description><![CDATA[I&#8217;ve decided to learn more about html5, since Google and Apple and a lot of these BIG companies say it&#8217;s the future. I went to http://canvasdemos.com and was amazed that all this can be achieved with canvas tag. I specifically liked the blowing up video into pieces , check it out, it&#8217;s AWESOME. Sean from [...]]]></description> <content:encoded><![CDATA[<h3><span
style="font-size: medium;"><br
/> </span></h3><p>I&#8217;ve decided to learn more about html5, since Google and Apple and a lot of these BIG companies say it&#8217;s the future.</p><p>I went to <a
href="http://canvasdemos.com">http://canvasdemos.com</a> and was amazed that all this can be achieved with canvas tag.</p><p>I specifically liked the <a
href="http://www.craftymind.com/2010/04/20/blowing-up-html5-video-and-mapping-it-into-3d-space/">blowing up video into pieces</a> , check it out, it&#8217;s AWESOME.</p><p>Sean from craftymind.com has done and amazing proof of concept, you should really check it out. I played with it and then realized, that clicking is the only interactivity there is and it seems that there&#8217;s more there. much more.</p><p><a
href="http://alexw.me/playground/canvas.html">Here&#8217;s what I came up with</a> :</p><p><a
href="http://alexw.me/playground/canvas.html"><img
title="Click Here to see it live in action" src="http://alexw.me/wp-content/uploads/2010/05/demo.jpg" alt="" width="480" height="291" /></a></p><p>Click on <strong>Randomize Pieces</strong> to explode the video to pieces and Begin assembling.</p><p><a
href="http://alexw.me/playground/canvas2.html">demo2</a> has video courtecy of bigcbuckbunny movie and lots more pieces (use chome)</p><p>I&#8217;ve decided to try and make something using the drawImage() method for the canvas, and inserting the video feed.</p><h2>Goals :</h2><ul><li>Learn a bit more about &lt;canvas&gt; ,html5 ,  video encoding</li><li>Use tools I know to interact with the new stuff (jquery, css)</li><li>Create something awesome!</li><li>Make it fun</li></ul><h2>The idea:</h2><p>The idea was simple, take Sean&#8217;s example, and add interactivity, first I was leaning towards making a &#8220;pyatnashki&#8221; ор <a
href="http://en.wikipedia.org/wiki/Fifteen_puzzle">fifteenpuzzle</a> puzzle game, only using video, but then I decided it&#8217;s cool to leave it as a regular puzzle without constraints.</p><h2>The actual work:</h2><p>First I had to use some movie, it had to loop good enough, since as it turned out later, video puzzle isn&#8217;t really easy. I&#8217;ve used video shot by <a
href="http://leenetsky.ru">my uncle </a> I offcourse had to format it properly, well it turns out, right now there are weird ways to input &lt;video&gt; in html, since webkit browsers support h.264 and webM and firefox supports theora codec.</p><p>I&#8217;ve re-encoded the video to 2 files ( .ogv and .mp4) using this tutorial : <a
href="http://diveintohtml5.org/video.html">http://diveintohtml5.org/video.html</a></p><p>I then had to choose what will I do the actual interactivity with, the canvas itself, or DOM elements. I&#8217;ve chosen DOM elements, that maybe slower, but it&#8217;s a diferent approach then I&#8217;ve seen, plus I already know how to manipulate DOM, and can use that to my advantage.</p><p>I&#8217;ve created a factory function, that picks up on original video width and height, and takes the number of pieces that I want, and creates the necessary amount of canvas elements.</p><p>I then use drawImage each frame of the video, and copy pixels to each canvas according to their location on the matrix.</p> ]]></content:encoded> <wfw:commentRss>http://alexw.me/2010/05/html5-video-puzzle-proof-of-concept/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> </channel> </rss>
