Hello everyone, this is the first time i post here and i would like to ask for help.
My objective is to make the task of learning Processing more interactive and easier. To do that, I am developing an educational program simulation tool. My question is how could i do this integration of my code with the Processing IDE.
I’m doing a translator for Processing as the title suggests. And my goal is to integrate it in the Processing IDE with a few extras. One extra would make it possible to stop, pause and run my code step by step while the graphics appear and disappear in relation to the current line of code. To give you a visual idea of what it may look like please check this website: https://visualgo.net/en. Other extra is to make the graphics interactive and non-static so we can see them being draw like, for example, turtle framework from python.
One idea that comes to mind is implementing a Processing IDE Tool or extension to the Debugger that spawns a “debug” PApplet which renders one drawing instruction at a time based on the debugger step
I guess it still work on this IDE but again, not sure if it’s what i’m looking for. Tweak mode it is indeed interactive but in this mode i can’t just pause ou go step by step like the Visualgo i referenced earlier.
maybe using reflections in a custom class might work. I created a sketch where you are able to call functions within said custom class with a string, including all parameters.
this is very basic but it allows you to call each function with a string such as this.
String []wf = {"sobelSP(20.0,150.0,blur(5))"};
here functions are separated by strings like in normal code. This code wouldn’t do everything but perhaps it could be combined with something else to get the desired effect. Ie visualizing code written in a sketch captured by a text input field. You could bind the input window to one PApplet and have the output on another PApplet I suppose this could only be used for basic things but I could be wrong, as my coding knowledge is still extremely limited, but you would then need to implement something else to account for logical statements conditions, for loops etc.