An open API service indexing awesome lists of open source software.

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.

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.