initial commit

This commit is contained in:
yhl452493373
2021-12-16 13:31:42 +08:00
parent d57e6a739c
commit 762eedcff8
4 changed files with 386 additions and 1 deletions

40
index.html Executable file
View File

@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>粒子效果</title>
<style>
html, body {
margin: 0;
padding: 0;
overflow: hidden;
width: 100%;
height: 100%;
}
body {
background: #010223;
}
canvas {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<script type="text/javascript" src="js/particle.js"></script>
<script type="text/javascript">
var particle = new Particle({
canvas: document.getElementById('canvas'),
fps: 24,
ballNumber: 100,
ballMinSize: 1,
ballMaxSize: 5,
color: 'rgba(84, 23, 196, 0.75)'
});
</script>
</body>
</html>