[ANN] Interactive 2D graphics on an HTML canvas via WebSockets

162 views
Skip to first unread message

Frederik Zipp

unread,
Apr 4, 2021, 4:32:36 AM4/4/21
to golang-nuts
I often find myself wanting to visualize simple graphics or even interactive animations from a Go program without resorting to platform-dependent or Cgo-based libraries, so I created this Go module:


It streams drawing operations and keyboard/mouse/touch events to and from a browser canvas via WebSockets.

It is loosely inspired by the protocol of the https://p9f.org/magic/man2html/3/draw device.

Manlio Perillo

unread,
Apr 4, 2021, 1:03:48 PM4/4/21
to golang-nuts
Thanks, it is really interesting.

Do you know if there is a similar module that use the DOM API as target instead of the Canvas API?

Manlio 

Frederik Zipp

unread,
Apr 4, 2021, 2:35:32 PM4/4/21
to golang-nuts
manlio....@gmail.com schrieb am Sonntag, 4. April 2021 um 19:03:48 UTC+2:
Thanks, it is really interesting.

Thanks.
 
Do you know if there is a similar module that use the DOM API as target instead of the Canvas API?

I haven't looked for it, so I don't know if something like that exists for Go.

Reply all
Reply to author
Forward
0 new messages