Skip to content

    Epileptic functioning of processing

    Created by
    PaulaAlvarez3
    PaulaAlvarez3

    The program works as follows: when it starts:

    • with setup: the canvas size is set, which will be constant
    • with draw:
    1. the background color is set to white
    2. start the for loop
    3. the number of squares reaches the limit that we had established It is at this moment that the exercise 2 program ended and we saw a static image with a white background and squares of different colors distributed randomly. However, since in this exercise we have put it inside the draw() function, once finished we return to point 1.
    Preview