Hello,
I’m a big fan of your processing.org layers library. Thank you.
I have a sketch with a couple of layers, and I can’t seem to figure out how to access a layer’s methods.
So, for instance, I have a layer definition
public class L_PolyMesh extends Layer {
…
void setup();{…}
void draw(){…}
void drawPolygons(){…}
}
and in the main program, I create an instance of the layer
void setup() {
layers = new AppletLayers(this);
L_PolyMesh canvas_mesh = new L_PolyMesh (this);
layers.addLayer(canvas_mesh);
l_mesh = layers.getLayer(0);
}
My problem is that when I try to do:
l_mesh.drawPolygons();
I get a warning that says “The function drawPolygons does not exist”. I’m sure I’m missing something, but I can’t figure out what that is. Your help would be appreciated.
Thanks!