zdog实现三维三叶草模型效果代码
代码语言:html
所属分类:三维
代码描述:zdog实现三维三叶草模型效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html lang="en"><head> <meta charset="UTF-8"> <style> html { height: 100%; } body { display: flex; align-items: center; justify-content: center; min-height: 100%; background: #111; } .illo { cursor: move; } </style> </head> <body > <canvas class="illo" width="625" height="625" style="width: 500px; height: 500px; touch-action: none;"></canvas> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/zdog.dist.js"></script> <script> // Made with Zdog // ----- variables ----- // const TAU = Zdog.TAU; const dotCount = 96; const loopCount = 3; const alpha = 0.7; const stroke = 10; let isSpinning = true; // ----- model ----- // let illo = new Zdog.Illustration({ element: '.illo', zoom: 7, dragRotate: true, onDragStart: function () { isSpinning = false; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0