180 likes | 330 Views
HTML5 Graphics. By Eric Horstmanshof & Dirk Hoffman. Introduction. Canvas – Overview Browser support Examples Workshop. HTML5 Canvas. Browser support. Chart from caniuse.com shows that older versions from IE don’t support Canvas. Setting up 2d Canvas(HTML). <body>
E N D
HTML5 Graphics By Eric Horstmanshof & Dirk Hoffman
Introduction Canvas – Overview Browser support Examples Workshop
Browser support Chart from caniuse.com shows that older versions from IE don’t support Canvas
Setting up 2d Canvas(HTML) <body> <canvas id=“canvas” width=“408” height=“250”> Your browser don’t support canvas </canvas> <script type=“text/javascript” src=“canvas.js”></script> </body>
Setting up 2d Canvas(JS) Window.onload = function() { var canvas = document.getElemenyById(‘canvas’) if(canvas.getContext) { var context = canvas.getContext(‘2d’); //Canvas code } }
IE Test Drive http://ie.microsoft.com/testdrive/
HTML5rocks http://www.html5rocks.com/en/
CanvasDemos http://www.canvasdemos.com/
Mozilla DemoStudio https://developer.mozilla.org/en-US/demos/
Examples http://9elements.com/io/projects/html5/canvas/ http://ie.microsoft.com/testdrive/performance/bubbles/ http://ie.microsoft.com/testdrive/Performance/PenguinMark/
Microsoft Testdrive: Bubbles http://ie.microsoft.com/testdrive/performance/bubbles/ See the framerate Change test settings
Microsoft Testdrive: PenguinMark http://ie.microsoft.com/testdrive/Performance/PenguinMark/ Test browser support & speed
9Elements: Audio & Visual http://9elements.com/io/projects/html5/canvas/
Test your browser http://html5test.com