摘要:
效果图: 知识点: 1、五角星顶点坐标 (r*cos(deg)+x,-r*sin(deg)+y) 2、画圆 ctx.arc(x,y,r,0,2*Math.PI); //后两个参数开始弧度,结束弧度。0表示开始弧度为3点钟方向,0.5PI为90度。 代码: <!DOCTYPE html> <html> 阅读全文
posted @ 2019-11-21 21:06
梁涛999
阅读(612)
评论(0)
推荐(0)
摘要:
效果图: 知识点: 1、context.beginPath(); 2、context.closePath(); 3、context.Rect(x,y,width,heght); context.fllRect(x,y,width,heght); context.strokeRect(x,y,widt 阅读全文
posted @ 2019-11-21 21:05
梁涛999
阅读(159)
评论(0)
推荐(0)

浙公网安备 33010602011771号