1 / 16

HTML5 Graphics

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>

Download Presentation

HTML5 Graphics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HTML5 Graphics By Eric Horstmanshof & Dirk Hoffman

  2. Introduction Canvas – Overview Browser support Examples Workshop

  3. HTML5 Canvas

  4. Browser support Chart from caniuse.com shows that older versions from IE don’t support Canvas

  5. 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>

  6. Setting up 2d Canvas(JS) Window.onload = function() { var canvas = document.getElemenyById(‘canvas’) if(canvas.getContext) { var context = canvas.getContext(‘2d’); //Canvas code } }

  7. Canvas - SVG

  8. IE Test Drive http://ie.microsoft.com/testdrive/

  9. HTML5rocks http://www.html5rocks.com/en/

  10. CanvasDemos http://www.canvasdemos.com/

  11. Mozilla DemoStudio https://developer.mozilla.org/en-US/demos/

  12. Examples http://9elements.com/io/projects/html5/canvas/ http://ie.microsoft.com/testdrive/performance/bubbles/ http://ie.microsoft.com/testdrive/Performance/PenguinMark/

  13. Microsoft Testdrive: Bubbles http://ie.microsoft.com/testdrive/performance/bubbles/ See the framerate Change test settings

  14. Microsoft Testdrive: PenguinMark http://ie.microsoft.com/testdrive/Performance/PenguinMark/ Test browser support & speed

  15. 9Elements: Audio & Visual http://9elements.com/io/projects/html5/canvas/

  16. Test your browser http://html5test.com

More Related