Radial 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 distance from the center, and draws the pixel in that color. This creates a radial color gradient.


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