perlin实现波纹彩带动画效果

代码语言:html

所属分类:动画

代码描述:perlin实现波纹彩带动画效果

代码标签: 彩带 动画 效果

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

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

<style>
*{
  margin:0;
  padding:0
}

body{
  background: #d8e3e9;
}

#myCanvas{
    position: absolute;
    display: block;
  }
</style>

</head>
<body translate="no">
<canvas id="myCanvas"></canvas>

<script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/perlin-min.js"></script>
<script>
let canvas = document.getElementById("myCanvas"),
ctx = canvas.getContext("2d"),
width = canvas.width = window.innerWidth,
height = canvas.height = window.innerHeight,
centerY = height .........完整代码请登录后点击上方下载按钮下载查看

网友评论0