examples/script/context2d/scripts/linestye.js
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     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();