d3实现彩色三角跟随背景效果代码

代码语言:html

所属分类:背景

代码描述:d3实现彩色三角跟随背景效果代码

代码标签: 三角 跟随 背景 效果

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

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">


  
  
<style>
body {
  width: 100vw;
  height: 100vh;
}
</style>



</head>

<body >
  

<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/d3.v3.js"></script>
      <script  >
var settings = {
  width: document.body.clientWidth,
  height: document.body.clientHeight,
  cellsize: Math.floor(Math.random() * Math.floor(150)) + 100,
  cellpadding: Math.floor(Math.random() * Math.floor(10)) + 5,
  bleed: Math.floor(Math.random() * Math.floor(200)) + 50,
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0