background preloader

Design Websites, Blogs & Info

Facebook Twitter

S Den - Exploring HTML5 Canvas: Part 1 - Introduction. Dec 19, 2011 In this post, I'm going to begin an examination of one of the hottest new features of HTML5, namely the Canvas element. What is Canvas, anyway? The best place to start is at the beginning, and that's with an explanation of what Canvas actually is. Canvas is a new element that is part of the HTML5 specification, and can be added to your markup as simply as this: 1: <canvas id="myCanvas" width="500" height="500"></canvas> OK, we're done. Of course, it's not that easy. Building a Template To make life easier as we explore the HTML5 Canvas, I'm going to start with a basic set of markup and script, and in future posts in this series, I'll add to that basic template. Here's the basic template I'm going to use: 1: <!

3: <html lang="en"> 4: <head> 5: <meta charset="utf-8" /> 6: <title>HTML5 Canvas Template</title> 7: <style> 8: /* styles here */ 9: </style> 10: </head> 11: <body> 12: <canvas id="myCanvas" width="500" height="500"> 13: <p>Canvas not supported. 14: </canvas> 27: renderContent(); The professional association for design. Digital Art in Motion - British Library Images Online | The Picture Library of the British Library. British Library Images Online | The online picture library of the British Library.

British Library Images Online | The online picture library of the British Library. InDesign Magazine Tip of the Week: Create a Tape Effect with Hard Light. Before & After magazine. Smashing Magazine. Before & After | Design Talk | Before & After's creative director John McWade's conversations with subscribers. After posting my comment last week about printer points (72 per inch) matching Mac screen resolution (72 pixels per inch), I got wake-up calls from readers Saul Bottcher and Mordy Golding. Said Mr. Bottcher . . . “Nooooo! Not the 72 ppi [pixels per inch] myth again! Your tips are normally great, but you have just done a disservice to any designer who is trying to make digital and print work together.

“Here’s a current-day example of why. . “15-inch MacBook Pro has a 15.4″ screen and runs at 1440 x 900; “15-inch MacBook Pro with Retina display has a 15.4″ screen and runs at 2880 x 1800. “Obviously, these machines cannot both use 72 ppi, and in fact there is a huge difference in ppi between the two displays — one has double the ppi of the other! “The fact is, 72 ppi is not a standard and never has been. “Please help to dispel this myth!

“For some reason, the 72 ppi myth is one of the most persistent incorrect ‘facts’ about computer hardware and refuses to die.” Mr. Gentlemen, thank you all. CreativePro | Graphic Design Software, Reviews, Tutorials, News, CreativePro | Graphic Design and Photography Software, Reviews, Tutorials, News, and Resources. Creative COW: Creative Communities of the World. Scripts Page. Sorry, technical support is not available for my scripts Please report any web-related problems by sending an email to the address listed below. Sorry for the inconvenience, but I will not have the chance to respond to questions relating to these scripts. Please only use them if you feel confident that you can remove them if something should go wrong.

My scripts are definitely not perfect and they will NOT work on every system configuration. Use them at your own risk. Also, PLEASE tell me if you like these scripts and if you are using them. For immediate response to your issues and questions, check out the Adobe Forum: forums.adobe.com Also be sure to visit the Adobe TV site for a great collection of information and tutorials: tv.adobe.com Sincerely, Russell Brown russellprestonbrown@mac.com.