Replies: 7 comments 36 replies
-
@villares , thank you for your kind words! It makes me very happy to hear how py5 brings you joy. I do hope many join together to build a community of people who make this something even better. There's still a lot to be done, particularly around documentation and example code. You are welcome to join this emerging community!
I have written code to covert Processing (Java) to py5 (Python), and used it for the example code you see on most pages in the reference documentation. It is not possible to do a perfect conversion but I could get it to work 90% of the time. I only had to use that once and I just manually fixed the errors. The basic idea behind that was to tokenize the code and then convert camel case to snake case. However, note that some Processing functions such as Converting processing.py code to py5 would be much easier because they both use python syntax already. My suggestion would be to use Python's https://github.com/hx2A/py5generator/tree/main/py5_resources/data I don't think a perfect translation will be possible but something that does 98% of the work is very achievable. Perhaps we could build a utility function and add it to py5_tools, so it becomes a part of the library? That would be a great contribution. |
Beta Was this translation helpful? Give feedback.
-
Oh, you can make a class that implements callabe objects with |
Beta Was this translation helpful? Give feedback.
-
In my opinion, the grand strategy to bring everything to the global namespace, and maybe using |
Beta Was this translation helpful? Give feedback.
-
I haven't seen any examples on the notebook without the |
Beta Was this translation helpful? Give feedback.
-
Fantastic project, @hx2A! And this is a great thread. I'll be keeping a close eye on py5, and I'll try to contribute where I can. |
Beta Was this translation helpful? Give feedback.
-
Sorry -- yeah, I deleted it to make a new topic: #19 |
Beta Was this translation helpful? Give feedback.
-
Hi! Fantastic initiative! I'm new working on open source projects, but I'll do my best to collaborate in this project. :) |
Beta Was this translation helpful? Give feedback.
-
Hi, @hx2A
First I would like to express my feelings of joy for the existence of this work of yours, I hope many people may join you to help and make this something even more wonderful everyone can use.
Do you think we could have some kind of "Compatibility Mode" to help people migrate examples from Processing Python mode?
I have tons of examples and didactic materials with the the traditional Processing naming conventions like
noFill()
andmousePressed
etc.Beta Was this translation helpful? Give feedback.
All reactions