three模拟大脑神经元神经系统
代码语言:html
所属分类:三维
代码描述:three模拟大脑神经元神经系统
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
overscroll-behavior: none;
overflow: hidden;
background-color: #000011;
color: #DDD;
font-family: Helvetica;
}
#title {
padding: 10px 0 10px 0;
text-align: center;
}
</style>
</head>
<body translate="no">
<div id="title">Click to regenerate.</div>
<div id="3d-graph"></div>
<script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/3d-force-graph.min.js"></script>
<script type="module">
import { UnrealBloomPass } from '//unpkg.com/three/examples/jsm/postprocessing/UnrealBloomPass.js';
const deg2rad = deg => {return deg * Math.PI / 180;};
const rad2deg = rad => {return rad * 180 / Math.PI;};
const initialData = { nodes: [{ id: 0 }], links: [] };
const N = 500;
const nodes = [..........完整代码请登录后点击上方下载按钮下载查看
网友评论0