Parallel self-modifying programming has all sorts of fun non-deterministic effects. In this case, the color to paint is written in memory instead of being kept safely on the stack.

You can see the different states of the threads.