摘要: JS代码 var staticx; var img = new Image(); img.src = "";//图片资源填入此处 //定义樱花 function Sakura(x, y, s, r, fn) { this.x = x; this.y = y; this.s = s; this.r = 阅读全文
posted @ 2020-12-11 20:08 又拿代码换酒钱 阅读(859) 评论(0) 推荐(0) 编辑
摘要: var canvas = document.getElementById("cas"); var ctx = canvas.getContext("2d"); resize(); window.onresize = resize; //定义画布大小的函数 function resize() { ca 阅读全文
posted @ 2020-12-11 19:38 又拿代码换酒钱 阅读(396) 评论(0) 推荐(0) 编辑