2D Gradient

This code uses a nested for loop to loop over every pixel in the window. For each pixel, it creates a color based on that pixel’s position, and draws the pixel in that color. This creates a 2D color gradient.


This is a companion discussion topic for the original entry at https://happycoding.io/examples/processing/for-loops/2d-gradient