Sneaky. That worked. My knowledge of OOP is a bit hazy, but I’m trying. Thanks for your help.
If I may ask another question, can you explain what this bit of code does to make the layers render?
void paint(java.awt.Graphics g) {
// This method MUST be present in your sketch for layers to be rendered!
if (layers != null) {
layers.paint(this);
} else {
super.paint(g);
}
} // end of paint()
Specifically what is ‘g’? I’ve seen in some old bits of code that inside layers definitions, I’ll see lines like:
img = g.get()
g.save(someimage)
Thanks again for your help.