zim编写一个canvas箭头动画

代码语言:html

所属分类:动画

代码描述:zim编写一个canvas箭头动画

代码标签: canvas 箭头 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

</head>
<body translate="no">

<script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/createjs.min.js"></script>
<script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/zim-min.js"></script>

<script >
const frame = new Frame("fit", 800, 600, green, "#555");
frame.on("ready", () => {// ES6 Arrow Function - similar to function(){}
  zog("ready from ZIM Frame"); // logs in console (F12 - choose console)

  // often need below - so consider it part of the template
  let stage = frame.stage;
  let stageW = frame.width;
  let stageH = frame.height;


  // CODE HERE

  // recorded points with recordPoints() - see the commented out code down below...
  const squiggle = new Squiggle({
    points: [[-168.1, 81.1, 0, 0, -340.5, 244.9, 340.5, -244.9], [114.6, 173.8, 0, 0, 159.4, 8.8, -159.4, -8.8], [335.4, -1.5, 0, 0, -387.7, -261.2, 387.7, 261.2]],
    thickness: 20,
    color: dark,
    interactive: false }.........完整代码请登录后点击上方下载按钮下载查看

网友评论0