three实现三维大脑神经模型预览代码
代码语言:html
所属分类:三维
代码描述:three实现三维大脑神经模型预览代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Digital Brain</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #050505;
color: #fff;
font-family: 'Courier New', Courier, monospace;
overflow: hidden;
width: 100vw;
height: 100vh;
}
#three {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
outline: none;
opacity: 0;
transition: opacity 1s ease;
}
/* Loader Styles */
#loader-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #050505;
z-index: 9999;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
}
.loader-content {
width: 100%;
max-width: 400px;
display: flex;
flex-direction: column;
gap: 10px;
}
.progress-container {
width: 100%;
height: 2px;
background: #1a1a1a;
position: relative;
}
#bar {
width: 0%;
height: 100%;
background: #fff;
transition: width 0.2s ease-out;
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.loader-info {
display: flex;
justify-content: space-between;
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
text-transform: uppercase;
letter-spacing: 1px;
}
#terminal-output {
margin-top: 20px;
width: 100%;
max-width: 400px;
font-family: 'Courier New', Courier, monospace;
font-size: 11px;
color: #666;
display: flex;
flex-direction: column;
gap: 4px;
}
.terminal-line {
display: flex;
gap: 8px;
opacity: 0;
animation: fadeIn 0.3s forwards;
}
.terminal-line.dim {
opacity: 0.5;
}
.terminal-prompt {
color: #333;
}
.terminal-cursor {
display: inline-block;
width: 6px;
height: 12px;
background: #666;
animation: blink 1s step-end infinite;
}
@keyframes blink {
50% { opacity: 0; }
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
.music-option {
cursor: pointer;
transition: all 0.2s;
}
.music-option:hover { color: #fff; }
.music-option.selected { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }
.music-option.disabled { opacity: 0.2; cursor: default; }
@font-face {
font-family: 'Ailerons';
src: url('https://fonts.cdnfonts.com/s/15830/Ailerons-Typeface.woff') format('woff');
}
</style>
<!-- Import Map for Modules -->
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.160.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/",
"gsap": "https://unpkg.com/gsap@3.12.5/index.js",
"lil-gui": "https://unpkg.com/lil-gui@0.19.1/dist/lil-gui.esm.min.js",
"tweakpane": "https://unpkg.com/tweakpane@4.0.1/dist/tweakpane.js",
"mersennetwister": "https://unpkg.com/mersennetwister@0.2.3/src/MersenneTwister.js",
"three-perf": "https://esm.sh/three-perf@1.0.11"
}
}
</script>
</head>
<body>
<canvas id="three"></canvas>
<div id="loader-container">
<div class="loader-content">
<div class="loader-info">
<span id="progress-text">INITIALIZING</span>
<span id="progress-percent">000%</span>
</div>
<div class="progress-container">
<div id="bar"></div>
</div>
<div id="terminal-output">
<div clas.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0