chore: added serialization for db option type
This commit is contained in:
@@ -206,14 +206,14 @@ function render(g: CanvasRenderingContext2D, state: State, time: number) {
|
||||
// }
|
||||
// }
|
||||
|
||||
const [mx, my] = state.mouse
|
||||
g.save()
|
||||
g.fillStyle = '#0008'
|
||||
g.translate(Math.floor(mx / CELL_SIZE), Math.floor(my / CELL_SIZE))
|
||||
g.beginPath()
|
||||
g.rect(0, 0, 1, 1)
|
||||
g.fill()
|
||||
g.restore()
|
||||
// const [mx, my] = state.mouse
|
||||
// g.save()
|
||||
// g.fillStyle = '#0008'
|
||||
// g.translate(Math.floor(mx / CELL_SIZE), Math.floor(my / CELL_SIZE))
|
||||
// g.beginPath()
|
||||
// g.rect(0, 0, 1, 1)
|
||||
// g.fill()
|
||||
// g.restore()
|
||||
}
|
||||
|
||||
setup()
|
||||
|
||||
Reference in New Issue
Block a user