three做个三维蛋糕代码

代码语言:html

所属分类:三维

代码描述:three做个三维蛋糕代码

代码标签: three 三维 蛋糕 代码

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

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

<head>
  <meta charset="UTF-8">
  
  
<style>
* {
  margin: 0;
  padding: 0;
}
</style>

  
  
</head>

<body translate="no">
  
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/three.128.js"></script>
    <script >
const layerHeights = [
[0.25, 0.25, 0.1, 0.25, 0.15],
[0.25, 0.25, 0.1, 0.25, 0.15],
[0.25, 0.25, 0.1, 0.25, 0.15],
[0.25, 0.25, 0.25, 0.25],
[0.25, 0.25, 0.25, 0.25],
[0.25, 0.25, 0.25, 0.25],
[0.25, 0.1, 0.25, 0.1, 0.25, 0.05],
[0.25, 0.25, 0.25, 0.25],
[0.125, 0.125, 0.125, 0.125, 0.125, 0.125, 0.125, 0.125],
[0.1, 0.18, 0.18, 0.18, 0.18, 0.18],
[0.25, 0.25, 0.25, 0.25]];

const colors = [
["#ac4601", "#e3a33d", "#cb453b", "#da6825", "#fcf1a5"],
["#551609", "#8c380c", "#551609", "#8c380c", "#551609"],
["#85330f", "#eebc9a", "#85330f", "#eebc9a", "#fcc9c6"],
["#ad3701", "#ad3701", "#e7b47c", "#fdbf08"],
["#8b3815", "#3f0d05", "#8b3815", ".........完整代码请登录后点击上方下载按钮下载查看

网友评论0