File: linestye.js

package info (click to toggle)
qtscript-opensource-src 5.11.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,872 kB
  • sloc: cpp: 163,657; yacc: 1,768; ansic: 1,718; perl: 425; sh: 169; python: 55; makefile: 24
file content (10 lines) | stat: -rw-r--r-- 234 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
var ctx = document.getElementById('tutorial').getContext('2d');
ctx.save();
  for (i=0;i<10;i++){
    ctx.lineWidth = 1+i;
    ctx.beginPath();
    ctx.moveTo(5+i*14,5);
    ctx.lineTo(5+i*14,140);
    ctx.stroke();
  }
ctx.restore();