Draw function, Processing, Python

No need for additional fixed increasing global variables if they’re updated once per draw() iteration.

For example, if you need some global variable which is updated by .01 steps, just multiply that value by frameCount locally: someLocalVariable = .01 * frameCount

2 Likes