Intelectron Motion Detector Security Light Manual update#
The update function updates parameters, while the draw function renders the game based on these parameters. This will make a window that starts black, becomes brighter and brighter red, then goes back to black, over and over again.
fill(tuple( colors)) def update (): colors = ( colors + 1) % 256.