Need help merging several sketches

I think that’s similar but he has problems:

See Load a different background sketch and automatically change each 30 seconds

In general from draw() call new functions draw1, draw2 and draw3 depending on sketchNumber, a new variable you have to declare globally.

In draw1 / draw2/ draw3 copy your draw function from the old sketches

Increase sketchNumber when frameCount%10*frameRate==0