1. 首页
  2. 编程语言
  3. 其他
  4. html5 canvas海底冒泡的海藻水草动画场景.zip

html5 canvas海底冒泡的海藻水草动画场景.zip

上传者: 2019-09-06 16:36:47上传 ZIP文件 2.65KB 热度 23次
代码片段:Stem.prototype.draw=function(ctx){ varlen,ctrlPoint,point; len=this.points.length-1; ctrlPoint={x:0,y:0};   ctx.save(); ctx.strokeStyle=this.color; ctx.beginPath(); ctx.moveTo(this.points[this.points.length-1].x,this.points[this.points.length-1].y); for(vari=len;i&g
下载地址
用户评论