Replies: 2 comments 8 replies
-
More context... I was extending pymunk (2D physics simulation engine) objects with some Py5Shape drawable content in a field... then I wanted to save/dump and reload the whole simulation with pickle and I had to take a step back and undo my simple & efficient Py5Shape based field in order to have it all "picklable". |
Beta Was this translation helpful? Give feedback.
-
This is a good idea! Doesn't |
Beta Was this translation helpful? Give feedback.
-
Sometimes I miss the ability to serialize py5 objects that depend on Processing core objects inside.
Last year I played with making Py5Image objects work with Python's pickle, thanks to the
np_pixels
interface:Now consider this toy code:
If
begin_record()
could accept a "file-like" buffer object instead of a string, I could maybe make an SVG in memory, which would help me make the crazy picklable Py5Shape objects that I want...Beta Was this translation helpful? Give feedback.
All reactions