<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>落雪效果</title>
<link rel="stylesheet" type="text/css" href="./static/css/index.css">
<script src="./static/lib/gpu-browser.min.js"></script>
<script src="./static/lib/theater/Theater.js"></script>
<script>
function handleLoadBody() {
Theater.init("room");
Theater.initScene();
}
</script>
</head>
<body onload="handleLoadBody();">
<div class="box" id="room"></div>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
JavaScript和Canvas实现雪花效果
共9个文件
xml:3个
js:2个
iml:1个
需积分: 13 0 下载量 30 浏览量
2022-10-11
15:07:39
上传
评论
收藏 93KB ZIP 举报
温馨提示
JavaScript和Canvas实现雪花效果 const _rad2 = _radian * (60 * (i - 1) + _angle); _2d.moveTo(toPhysical(_left, _cx2), toPhysical(_top, _cy2)); _2d.lineTo(toPhysical(_left, _cx2 + _self.round(_size2 * Math.cos(_rad2))), toPhysical(_top, _cy2 + _self.round(_size2 * Math.sin(_rad2)))); const _rad3 = _radian * (60 * (i + 1) + _angle); _2d.moveTo(toPhysical(_left, _cx2), toPhysical(_top, _cy2)); _2d.lineTo(toPhysical(_left, _cx2 + _self.round(_size2 * Math.cos(_rad3))), toPhysical(_top, _cy2 + _self.round(_
资源详情
资源评论
资源推荐
收起资源包目录
Snow.zip (9个子文件)
Snow
index.html 542B
static
css
index.css 442B
lib
theater
Theater.js 7KB
gpu-browser.min.js 393KB
.idea
modules.xml 267B
Snow.iml 469B
watcherTasks.xml 1KB
workspace.xml 4KB
.gitignore 103B
共 9 条
- 1
SemorBaby
- 粉丝: 1
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0