js模拟自然界弱肉强食生命演化代码
代码语言:html
所属分类:其他
代码描述:js模拟自然界弱肉强食生命演化代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>自然界:弱肉强食生命模拟</title>
<style>
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, sans-serif;
}
body{
overflow:hidden;
background:#111;
color:#fff;
}
canvas{
display:block;
background:
radial-gradient(circle at center, #1f3d1f 0%, #0d1b0d 60%, #050805 100%);
}
.panel{
position:fixed;
left:10px;
top:10px;
width:330px;
background:rgba(0,0,0,.72);
border:1px solid rgba(255,255,255,.15);
border-radius:16px;
padding:14px;
backdrop-filter: blur(8px);
z-index:10;
}
.panel h2{
font-size:20px;
margin-bottom:12px;
color:#9cff7f;
}
.control{
margin-bottom:10px;
}
.control label{
display:flex;
justify-content:space-between;
margin-bottom:4px;
font-size:13px;
}
.control input{
width:100%;
}
.stats{
margin-top:14px;
line-height:1.7;
font-size:14px;
}
button{
margin-top:8px;
padding:10px 14px;
bord.........完整代码请登录后点击上方下载按钮下载查看















网友评论0