⬆️ update prettier

This commit is contained in:
platane
2025-02-20 19:58:59 +07:00
parent 79c252356c
commit ace186c41f
41 changed files with 94 additions and 94 deletions

View File

@@ -10,7 +10,7 @@ type Options = {
export const drawSnake = (
ctx: CanvasRenderingContext2D,
snake: Snake,
o: Options
o: Options,
) => {
const cells = snakeToCells(snake);
@@ -25,7 +25,7 @@ export const drawSnake = (
ctx,
o.sizeCell - u * 2,
o.sizeCell - u * 2,
(o.sizeCell - u * 2) * 0.25
(o.sizeCell - u * 2) * 0.25,
);
ctx.fill();
ctx.restore();
@@ -40,7 +40,7 @@ export const drawSnakeLerp = (
snake0: Snake,
snake1: Snake,
k: number,
o: Options
o: Options,
) => {
const m = 0.8;
const n = snake0.length / 2;
@@ -61,7 +61,7 @@ export const drawSnakeLerp = (
ctx,
o.sizeCell - u * 2,
o.sizeCell - u * 2,
(o.sizeCell - u * 2) * 0.25
(o.sizeCell - u * 2) * 0.25,
);
ctx.fill();
ctx.restore();