Assignment 0


I modified the original example program to instead draw a 21x21 grid of squares, colored with a gradient. Using a nested for loop, the program draws each square with a color determined by it's x and y axis. Since the program loops and continues to redraw the polygons, I used a couple of static variables to modify the red value of the color. This produces a smooth transition between the two gradients.