0.1-alpha.4
github-actions
released this
23 Aug 04:46
·
74 commits
to main
since this release
- fix: massive memory leak after quit (#14)
Calling canvas.quit()
would still continue the event loop...saturating the task buffer causing a leak.
- feat: load image surface (#16)
// png or jpeg
// for bitmap, use canvas.loadBitmap("player.bmp")
const surface = canvas.loadSurface("player.png");
const texture = canvas.createTextureFromSurface(surface);