chore: more stylistic changes

This commit is contained in:
2024-10-18 14:56:21 +02:00
parent 66c8869671
commit da72cd3411
9 changed files with 27 additions and 16 deletions
+4 -2
View File
@@ -1,5 +1,9 @@
const $canvas: HTMLCanvasElement = document.querySelector('#circuits-art')!
const isMobile = window.matchMedia('(max-width: 1024px)').matches
const CELL_SIZE = !isMobile ? 27 : 19
interface Grid<T> extends Iterable<[number, number, T]> {
has(point: [number, number]): boolean
get(point: [number, number]): T
@@ -124,8 +128,6 @@ function update(state: State, width: number, height: number, time: number) {
}
}
const CELL_SIZE = 27
const BACKGROUND_COLOR = '#ecffe3'
const WIRE_COLOR = '#a6ce94'