p5.Graphics element as overlay

EDIT: Please ignore this post. The code I tried did work after all. Sorry for noise.

I have two p5.Graphics objects of equal dimensions, each with some lines and circles. How do I overlay one over the other as I draw them to the screen?

I tried:

image(underlayGraphics); image(overlayGraphics);

but this results in the overlay completely overwriting the screen, i.e., none of the underlay shapes are visible.

Thanks in advance Alex

Answers

Sign In or Register to comment.