Original post

hi,

I am happy to announce the first vaguely usable version of -p5/p5, a port of Processing/p5js to Go.

p5 can be seen like a toolkit to learn , but instead of "just" seeing text and numbers being manipulated in a terminal, you get to see geometrical shapes, colors and stuff bein manipulated in a graphical window. (also via some interactions with the mouse/keyboard.)

There are already a couple of "nice" examples:

  • hello world

https://preview.redd.it/qh9xv02hh2z51.png?width=400&format=png&auto=webp&s=4e0bf333e960705b65b60c8576182f7cf4e836d1

  • bouncing balls

https://i.redd.it/k56qxkcih2z51.gif

  • mouse-pressed
  • snake
  • solar-system

https://i.redd.it/ufel7ptjh2z51.gif

go-p5/p5 is based on Gio for the graphics+key/mouse-events and on Gonum for the physics stuff.

The Processing/p5js API isn't completely available. So there is still a lot of things to do. Patches welcome 🙂

submitted by /u/sbinet
[link] [comments]