That’s why we ask to see an example! ![]()
Taking a step back, I wonder why you’re using the registerMethod() function for this? It seems like you should probably just call one function from the other:
// sketch-level draw function
void draw(){
pan.draw();
}
It also feels a little weird to need a reference to the parent class inside the child class. Why do you need this setup?