Compare commits

...

2 Commits

Author SHA1 Message Date
sherwood 5b851c31db Add readme 2022-08-14 13:28:03 +02:00
sherwood 8fcc026344 Add border for canvas 2022-08-14 13:27:52 +02:00
2 changed files with 22 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# HTML Playground
small template for having some stuff show up on a canvas.
Canvas is dynamically sizing to the viewport.
Space for debug info & buttons at the bottom
## Structure
Idea being that anything that is 'drawable' gets put into an array, and the render loop just puts those pixels on the canvas.
# TODO
- lerp between states
- Should this be in the drawable's render routine?
+1
View File
@@ -17,4 +17,5 @@ body > {
canvas{ canvas{
height: 100%; height: 100%;
width: 100%; width: 100%;
border: 1px solid black;
} }