canvas水墨风格动画效果代码

代码语言:html

所属分类:动画

代码描述:canvas水墨风格动画效果代码

代码标签: canvas 水墨 风格 动画

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

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

<head>
  <meta charset="UTF-8">
  

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


  
</head>

<body translate="no">
  
  
      <script  >
const canvas = document.createElement('canvas');
const c = canvas.getContext('2d');

canvas.width = innerWidth * 2;
canvas.height = innerHeight * 2;
canvas.style.width = innerWidth + 'px';
canvas.style.height = innerHeight + 'px';
document.body.append(canvas);
canvas.style.filter = `contrast(1.3) sharpen(2)`;

class Quad {
  constructor().........完整代码请登录后点击上方下载按钮下载查看

网友评论0