There is no need for class wrappings, “singleton” or “borg” pattern implementations, when you are doing small #CreativeCoding interactive or animated sketches.
Sometimes, keeping global state is needed, and the best, simplest, most readable, teachable way to do it is with some global variables (module scope in Python).
These aren’t the software engineering patterns you’re looking for. #GlobalVariablesCanBeOK