top | item 34563013

(no title)

hx2a | 3 years ago

> Making gifs with processing is (weirdly) one of the more painful exercises in the framework. Kind of baffling, given the goals of the project.

FWIW, py5 makes it very easy to create animated GIFs. You can create a GIF from a running sketch with one line of code:

https://py5coding.org/reference/py5tools_animated_gif.html

py5 is a version of Processing for Python 3.8+ that is well integrated into the Python ecosystem. It connects the Processing Jars to Python using JPype. If you like Processing, please give it a try!

(I am the author of py5)

discuss

order

guiambros|3 years ago

Oh nice! I enjoyed reading Nature of Code when it launched on Kickstarter over a decade ago, but the barebones IDE and the Java heritage always turned me off. And p5.js was, well, Javascript. I spent some time porting some of the functions to Python, but realized to make it useful it'd be a bigger effort than I had time and skill.

Py5 looks awesome! Will give it a try soon. Thanks for your work!

ps: I noticed you're using JPype to connect to the Java Processing libraries. Very smart.

hx2a|3 years ago

> I spent some time porting some of the functions to Python, but realized to make it useful it'd be a bigger effort than I had time and skill.

Getting py5 off the ground started during pandemic lockdown and took many months. Managing the source code is best done computationally, with py5generator creating the actual py5 source code.

https://github.com/py5coding/py5generator https://github.com/py5coding/py5

> ps: I noticed you're using JPype to connect to the Java Processing libraries. Very smart.

JPype is a solid and well maintained library. With JPype, py5 is well positioned to work with numpy and the rest of python's scientific tools.

> Py5 looks awesome! Will give it a try soon. Thanks for your work!

You are welcome! I hope you enjoy it!

bglazer|3 years ago

Nice! Thanks for creating that, I just finished a small processing project that involved a lot of array and data structure manipulation and that kind of work odd really unpleasant in Java, especially when compared to python. Better gif creation is excellent too.

Definitely going to give py5 a try.