source: trunk/examples/script/context2d/scripts/linestye.js@ 168

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

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

File size: 234 bytes
Line 
1var ctx = document.getElementById('tutorial').getContext('2d');
2ctx.save();
3 for (i=0;i<10;i++){
4 ctx.lineWidth = 1+i;
5 ctx.beginPath();
6 ctx.moveTo(5+i*14,5);
7 ctx.lineTo(5+i*14,140);
8 ctx.stroke();
9 }
10ctx.restore();
Note: See TracBrowser for help on using the repository browser.