style: 调整样式

This commit is contained in:
chenchun
2025-08-04 18:27:18 +08:00
parent 7f4b8f1c8a
commit 7cb3aea2e6
7 changed files with 13 additions and 20 deletions

View File

@@ -47,10 +47,9 @@ function createStars(numStars) {
}
function drawStars() {
ctx.fillStyle = '#f0f2f5';
ctx.fillStyle = '#00DA72';
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = 'black';
stars.forEach(star => {
const k = 128 / star.z;
const px = star.x * k + centerX;