chore: added serialization for db option type

This commit is contained in:
2023-06-13 23:50:20 +02:00
parent e36fddb2b3
commit be8c35229b
5 changed files with 44 additions and 8 deletions
+8 -8
View File
@@ -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()