UNPKG
test-gcanvas-node
Version:
latest (1.0.1)
1.0.1
1.0.0
gcanvas for node developer
test-gcanvas-node
/
core
/
test
/
benchmarks
/
shaow
/
tc_2d_shadow_fillrect.js
9 lines
(7 loc)
•
178 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
ctx.
translate
(
100
,
100
); ctx.fillStyle
=
"blue"; ctx.shadowColor
=
"black"; ctx.shadowBlur
=
15
; ctx.shadowOffsetX
=
20
; ctx.shadowOffsetY
=
20
; ctx.fillRect(
10
,
10
,
100
,
100
);