use a string as a processing execution
in
Programming Questions
•
7 months ago
Hello guys
obviously i can use a string in processing used function like this:
void imageBank(String index, int filecount) {
images= new PImage[filecount];
for ( int i = 10; i< images.length; i++ ){
images[i] = loadImage(index + (i+1) + ".jpg" );
}
but i ask if i can call processing function in a string as an individual execution:
like this:
String str = "rect(50,50,50,50);"; str; // use str to call the rect method
it's a so basic example so maybe it appears stupid to you
, i try to use the fastest and the simplest way to illustrate my question
i wait patiently to your answers
Cheers
1