https://github.com/ewaldhorn/tinycanvas
TinyGo bindings to use the HTML5 Canvas - convenience utility basically for myself.
https://github.com/ewaldhorn/tinycanvas
canvas2d go html5-canvas tinygo wasm webassembly
Last synced: 10 months ago
JSON representation
TinyGo bindings to use the HTML5 Canvas - convenience utility basically for myself.
- Host: GitHub
- URL: https://github.com/ewaldhorn/tinycanvas
- Owner: ewaldhorn
- License: mit
- Created: 2025-01-01T11:55:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-22T13:12:21.000Z (11 months ago)
- Last Synced: 2025-03-22T14:22:05.769Z (11 months ago)
- Topics: canvas2d, go, html5-canvas, tinygo, wasm, webassembly
- Language: Go
- Homepage: https://ewaldhorn.github.io/tinycanvas/
- Size: 502 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TinyCanvas v0.0.12
TinyGo-based in-memory canvas that can output to the HTML5 Canvas.
It's not entirely based on calling the HTML5 Canvas functions directly, but rather
creates an in-memory buffer that gets copied and displayed by the canvas. This tool
was built to help migrate old Turbo Pascal programs to something a bit more modern,
with the intention of sticking as closesly to the old output as possible.
=== All of this is still very much WIP. ===
This is a collection of utilities / tools I use, kind of cleaned up in case anyone
else finds a use for them.
## Demo
There's a small live demo at if you like.
### TinyCanvas
Contains the canvas components along with some Pixel utilities. You can also get direct
access to the underlying graphics context if you look carefully...
### Colour
Contains colour components. I ended up extracting it because it can be useful on its own.
### Zed
I use as my main editor most of the time. There's a convenient `zed.sh`
file included to start it with the right environment variables to enable code completion etc.