From 1634f305fd9e9ae6dad1fb2a646fb4dbe30a0bae Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Tue, 5 Dec 2023 20:03:53 +0100 Subject: [PATCH] formatting --- day5/main.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/day5/main.ts b/day5/main.ts index bc04e75..c317b16 100644 --- a/day5/main.ts +++ b/day5/main.ts @@ -161,17 +161,17 @@ function TIC() { seed.value = seeds[seed.index]; } - for (let x=0;x<240;++x) { - for (let y=0;y<136;++y) { - const c = pix(x, y) + for (let x = 0; x < 240; ++x) { + for (let y = 0; y < 136; ++y) { + const c = pix(x, y); if (c >= 12) { - pix(x, y, c+1); + pix(x, y, c + 1); } } } } - rect(200, 0, 50, 136, 0) + rect(200, 0, 50, 136, 0); for (const [i, step] of steps.entries()) { print(step.name, 1, y, i + 2); @@ -179,8 +179,6 @@ function TIC() { y += offset; } - - const yOffset = ((frames % speed) / speed) * 12; circ(seed.value + x, seed.step * offset + 2 + yOffset, 2, 12); print(seed.value, x + lineLen + 5, seed.step * offset + yOffset, 12);