source:
trunk/examples/script/context2d/scripts/linestye.js@
579
| Last change on this file since 579 was 2, checked in by , 17 years ago | |
|---|---|
| File size: 234 bytes | |
| Line | |
|---|---|
| 1 | var ctx = document.getElementById('tutorial').getContext('2d'); |
| 2 | ctx.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 | } |
| 10 | ctx.restore(); |
Note:
See TracBrowser
for help on using the repository browser.
