摘要:
canvas完美实现刮刮卡的方法 var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.fillStyle="red"; ctx.fillRect(20,20,75,50); ctx.globalComp 阅读全文
摘要:
识别canvas和webgl的方法 var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); console.log(ctx); 返回的是CanvasRenderingContext2D 这类 var c=docum 阅读全文
摘要:
javascript 放大缩小精灵升级版 function xuanzhuanactnew(dianthat, dianjix, dianjiy, zhongxinx, zhongxiny){ var newangle = getjiaodu(dianjix, dianjiy, zhongxinx, 阅读全文