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.2.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/zim_014.js"></script> <script > new Frame(FIT, 1024, 768, black, darker, ready); function ready() { // given F (Frame), S (Stage), W (width), H (height) // put your code here F.color = black; const bar = new Rectangle(250, 30, new GradientColor([dark, light, dark], 90)). centerReg(). mov(0, -80). animate({ props: { rotation: 360 }, ease: "linear", time: 1, loop: true }); const nozzle1 = new Circle(2, black).pos(0, 0, RIGHT, CENTER, bar); const nozzle2 = new Circle(2, black).pos(0, 0, LEFT, CENTER, ba.........完整代码请登录后点击上方下载按钮下载查看
网友评论0