Radial Gradient

Hello, I need to create a radial gradient and this actually seems to be a bit tricky.

I realize it needs to be a ofTexture that’s filled with a nested for loop and a center point, but i haven’t really worked with images yet so I don’t really know how to go about this. Any help would be awesome.


Why not just draw an ever shrinking circle to the screen with the color being gradually changed from one circle to the next?

For a radial gradient I would measure the distance from each pixel to the centerpoint and base the colour on that. Or do this just for a quarter and then copy/mirror it 3 times.

Maybe this is what you need: