Sign in
third-party-mirror
/
orbit
/
301094089f7066c20f6885ee60d316d3f550a3c2
/
.
/
qt-everywhere-src-5.14.1
/
qtscript
/
examples
/
script
/
context2d
/
scripts
/
linestye.js
blob: 728e3e69e580d8e7e2666be8c445b078902b943f [
file
] [
log
] [
blame
]
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
();