p5实现韵律节奏动画效果代码

代码语言:html

所属分类:布局界面

代码描述:p5实现韵律节奏动画效果代码

代码标签: p5 韵律 节奏 动画

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


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

<head>

  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1">

  
  
<style>
body {
  background: black;
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
  overflow: hidden;
}
</style>



</head>

<body >


  <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/p5.1.6.0.js"></script>
      <script  >
'use strict';
console.clear();
let cornerRadius = 7, cosExponent = 15, drawHeight = 800, drawWidth = 1000, drawPadding = 20, frameScaling = 0.015, numLayers = 7, numLines = 35, ovalWidth = 12, ovalHeight = 60;
let backgroundFill = 'indianred', lineStroke = 'white', lineStrokeWeight = 1, ovalFill = 'lightskyblue', ovalStroke = 'white', ovalStrokeWeight = 2;
let lineLocations, paddedWidth, paddedHeight, maxY;
function setup() {
    createCanvas(drawWidth, drawHeight);
    // noLoop();
    rectMode(CENTER);.........完整代码请登录后点击上方下载按钮下载查看

网友评论0