forked from phc/website
chore: more stylistic changes
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user