1.circle(x, y, radius, [color], [fill])
a:jc.circle({x:230,y:220,radius:50,color:'#ff0000',fill:1}); // 最后fill填充只要是boole就行,1或者true
b:jc.circle(x,y,r,[line-color],[fill-booler])
2.rect(x,y,w,h,[color],[fill-boller])
3.arc(x,y,r,startAngle,endAngle,[
anticlockwise是否逆时针],[color],[foll]); 和成json的写法如下面:
jc.start(idCanvas);
jc.arc({x:60,
y:100,
radius:60,
startAngle:90,
endAngle:180,
anticlockwise:1,
color: 'rgb(25,99,253)',
fill:0});
jc.start(idCanvas);
4:jc.line(point,[color],[fill] ); // point is an con-Array [[0,0],[] ]/
jc.line([[0,0], [150,150],[150,0],[200,150],[400,0]],'#ff5587',true);
jc.line({points:[[a,b]],color:'rgba(12,253,65,0.7)',fill:1});