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
/
arc
/
tc_2d_arc.js
10 lines
(7 loc)
•
225 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
ctx.
fillStyle
=
'#000000'
; ctx.
fillRect
(
0
,
0
, c.
width
, c.
height
);
console
.
log
(
"ratio is ======>"
+ ratio); ctx.
beginPath
(); ctx.
strokeStyle
=
"yellow"
; ctx.
arc
(
50
*ratio,
75
*ratio,
50
*ratio,
0
,
0.5
*
Math
.
PI
); ctx.
stroke
();