source: trunk/examples/script/context2d/scripts/quad.js@ 247

Last change on this file since 247 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 565 bytes
Line 
1var canvas = document.getElementById('tutorial');
2
3 // Make sure we don't execute when canvas isn't supported
4 if (canvas.getContext){
5
6 // use getContext to use the canvas for drawing
7 var ctx = canvas.getContext('2d');
8
9 // Draw shapes
10