zim实现烟花绽放动画效果代码
代码语言:html
所属分类:动画
代码描述:zim实现烟花绽放动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
</head>
<body >
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/createjs.1.3.4.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/zim_014.js"></script>
<script type="module">
// see https://zimjs.com
// and https://zimjs.com/learn
// and https://zimjs.com/docs
new Frame(FIT, 1024, 768, darker, black, ready);
function ready() {
// We will make an Emitter shoot a streamer
// A particle is said to decay when it stops moving
// A particle is said to fizz when the life time is up and it disappears
// We will capture a decayed event to then set an explosion
// The explosion is another Emitter that we place at the streamer particle's position
// We then clone these so that we can run two fireworks at the same time
// Don't go crazy! Watch out for performance...
// make an Emitter() to emit the streamer for the firework
const shoot = new Emitter({
// Here we specify the object to emit (the Emitter clones the object)
// We can pass in a single object or any ZIM VEE value from which each particle will be picked
// ZIM VEE values are as follows:
// 1. an Array of values to pick from - eg. ["red", "green",.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0