I don’t really see how I can assign a mouseOver listener to generated objects in instance mode. This doesn’t work for obvious reasons (looking for the function in the object). I tried p.glyphs_to_show[n].mouseOver(p.displayGlyphLarge) but that also didn’t work. Any help or pointers much appreciated! I somehow need to reference the p5js mouseover but also the object.
“Uncaught TypeError: Cannot read property ‘mouseOver’ of undefined”
Well, I guess not looking at it. ng in my mind is just temporary naming. The question that’s turning me inside out is how to call that method when ng is not within p5.
I thought it might be ng.p.mouseOver(p.displayGlyphLarge); with p being set in the class constructor (this.p = p;), but alas no.