Closed katestange closed 3 months ago
This is occurring because draw is called again automatically by p5 when the canvas resizes, and the ModFill code just goes ahead and increments the index again even though it already got to the limit. (To be fair, the original author of ModFill did not realize it was possible for draw() to be called again after it had called noLoop().) Anyhow, we need to make visualizers in general resilient to draw being called again after the visualizer thinks it is "done".
[Should be resolved by ui2; I guess we should comb through the whole issue list thereafter.]
Indeed, this is working fine in ui2, so closing.
I tried the ModFill visualizer with default options on A006769, and when resizing the window produced this console error: