Debian Codegraph @

examples/script/context2d/scripts/linestye.js

raw symbols SCIP
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();