win

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Windows 95 Boot Screen</title>
<style>
*{margin:0;padding:0;box-sizing:border-box}
body{
width:100vw;height:100vh;
background:#000;
display:flex;
justify-content:center;
align-items:center;
}
/* 模拟原版LOGO.SYS 320×400画布 */
.boot-screen{
width:320px;
height:400px;
background:#87CEEB; /* Win95开机浅蓝天蓝背景 */
position:relative;
overflow:hidden;
}
/* 底部进度条:铺满整个屏幕底部 */
.progress-bar{
position:absolute;
bottom:0;
left:0;
width:100%;
height:16px;
display:flex;
}
.bar-cell{
height:100%;
}
</style>
</head>
<body>
<div class="boot-screen">
<div class="progress-bar" id="bar"></div>
</div>

<script>
// Win95原版20色调色板:浅蓝 → 白色渐变
const palette = [
[110, 175, 245],
[130, 190, 248],
[150, 205, 250],
[170, 218, 252],
[190, 230, 253],
[210, 240, 254],
[230, 248, 255],
[242, 252, 255],
[250, 254, 255],
[255, 255, 255],
[250, 254, 255],
[242, 252, 255],
[230, 248, 255],
[210, 240, 254],
[190, 230, 253],
[170, 218, 252],
[150, 205, 250],
[130, 190, 248],
[110, 175, 245],
[95, 160, 235]
];
const bar = document.getElementById("bar");
const cellCount = palette.length;

// 创建格子,铺满整个底部宽度
for(let i=0;i<cellCount;i++){
const div = document.createElement("div");
div.className = "bar-cell";
div.style.width = `${100/cellCount}%`;
bar.appendChild(div);
}
const cells = document.querySelectorAll(".bar-cell");

let offset = 0;
// 模拟VGA调色板循环,80ms一帧,和原版速度对齐
setInterval(()=>{
offset++;
cells.forEach((cell, idx)=>{
const palIdx = (idx + offset) % palette.length;
const [r,g,b] = palette[palIdx];
cell.style.backgroundColor = `rgb(${r},${g},${b})`;
})
},80);
</script>
</body>
</html>

Copyright © S.X.K.R.I., 1985‑2026, all rights reserved. 萌ICP备20267997号
⚠️This is virtual‑entertainment ICP, not official government ICP.