style: 调整样式
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user