I'm going to use Processing in a live concert with my band. I'm working on different interactive animations for every song we play. So at the moment I have a different sketch (each one made of many classes/files) for every song. Is there a practical way to run the sketches from another main sketch?
I mean: I run this main sketch then, for example, I press the button "1" to load the first animation, then button "2" to switch to another one and so on. Is there any good approach to do this?
but I'm actually drawing the rectangles again and again and not actually moving.
Then, in the draw() function:
void draw()
{
for (int i = 0; i < rectNum; i++)
{
a[i].display();
}
}
"a" is an array with all the rectangles. I'm not sure if this is the right way to do it. I mean, I'd like all the rectangles rotating at the same time in different ways.