Error changing global variable inside draw() function

Hello @bruhnana,

It helps to know which version of Processing Python mode you are using.

With Processing 3.5.4 Python mode on W10 I get this error:

I did not get an error message with Processing 4.2 Python mode on W10.
A lack of an error message does not mean there is not an error.

There are some topics suggesting Processing 4.2 is not ready for prime time and you should use Processing 3.5.4

I did not explore further.

References:

Latest Python modes used in each case above.

:)

1 Like