最新回答 / 慕粉1461495807
Draw.js:2 Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap)'出现这个问题怎么解决?图片地址也写了啊: var bgpic=new Image();function ga...
2016-10-18
已采纳回答 / 请叫我蜗牛小姐
ctx2.save(); ctx2.globalAlpha = 0.6; ctx2.lineWidth = 20; ctx2.lineCap = "round"; ctx2.strokeStyle = "#3b154e"; for (var i = 0; i < this.num;i++) { ctx2.beginPath(); ctx2.moveTo(this.x[i], canHeight); ctx2.lineTo(...
2016-10-09
最新回答 / qq_风龙_0
drawBackground();//这是画背景图片的函数,你都没有放出来,给你补上,不知道是不是你想要的function drawBackground(){ //背景绘制到第二个canvas画布上 ctx2.drawImage(bgPic,0,0,canWidth,canHeight);}老师视频有好几个js文件,也包括这个背景图片绘画,注意在html页面引用<script type="text/javascript" src="js/background.js"></script&g...
2016-09-22