☰
Debian Codegraph
@
5.15.19+dfsg-2
/
/
examples
/
script
/
context2d
/
scripts
/
linestye.js
☽
☼
examples/script/context2d/scripts/linestye.js
code
plain
raw
symbols
SCIP
BSD-3-clause
2017 The Qt Company Ltd.
debian/copyright
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
();