Skip to content

Commit

Permalink
Savepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinten committed Jul 27, 2024
1 parent e555360 commit 5493f25
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

## Programming interface

Events
- `on`
- `off`
- `once`
- `emit`
- `last`
Event methods

Event types
- `on = (type, e => {}) => {}`
- `off = (type, e => {}) => {}`
- `once = (type, e => {}) => {}`
- `emit = (type, e) => {}`
- `last = (type) => e`

Event types and e objects

- `update` `{ t, dt }`
- `draw` `{ ctx }`
- `tap` `{ x, y }`
- `color` `{ bg, fill, stroke }`
- `resize` `{ vw, vh, vc }`
- `resize` `{ vw, vh, vc }`

0 comments on commit 5493f25

Please sign in to comment.