先看看效果
点击查看网页执行效果
直接贴代码
script.js
const s = window.screen;
const w = (q.width = s.width);
const h = (q.height = s.height);
const ctx = q.getContext("2d");
const p = Array(Math.floor(w / 10) + 1).fill(0);
先看看效果
点击查看网页执行效果
直接贴代码
script.js
const s = window.screen;
const w = (q.width = s.width);
const h = (q.height = s.height);
const ctx = q.getContext("2d");
const p = Array(Math.floor(w / 10) + 1).fill(0);