Ok, so you can do like
but it creates a new thread.
Is it possible to call a procedure in a similar way it the main thread?
Or even maybe there is a way to execute code in a String? Like
String changeColors = "fill(200); \n stroke(100);"; execute(changeColors);