Translating Processing to P5js

The function contains this:

    cooper = null;

That is the reason cooper was set to null. You should remove that function as well as the call to it.

1 Like