🏠 back to Observable

Cell flicker when active, P5 js and calling functions outside the sketch cell.

Hi, I’m playing with P5 in observable and notices on the standard setup that I get a strange flicker when the html canvas cell has the mouse over it. I’m guessing it’s something todo with observable also monitoring the cell for activtivity.

I’m also new so any other tips are welcome too.

Like how could I call other cells or functions from within the sketch cell as p.function is out of scope and using calling p5.function is circular. I can plop the other functions in the sketch cell but I was hoping to be more observable like.