Try using sketch
to access the underlying PApplet object! Let me know how you go.
This is really exciting to see! Thank you for experimenting with that. I want to better facilitate inclusion of gems / Processing libraries in future - whether through a GUI (like Processing IDE) or simple API calls / path configurations.
Yeah since the code isn’t tied to the state like in Praxis, removing the code to create a variable (e.g: @var_name = 123
) and executing it again won’t remove the created variable. So instead you rely on the GUI to keep track of what state is currently present in your program and manage things (like deleting variables). Though you could also write code to delete a variable (e.g: remove_instance_variable(:var_name)
)
This makes sense! It sounds very clean and it gives you a very clear picture about the state of the program / system. The only thing that get’s me about this model in Java is the amount of boiler plate required to set things up! Do you often find yourself live coding properties, ports, etc?