We are about to switch to a new forum software. Until then we have removed the registration on this forum.
https://processing.org/reference/PImage_mask_.html
maskimage allows to use a 2D integer array instead of an image for masking.
I need to calculate a radial blur for different image sizes. How could I calculate the values for the array dynamically?
My images will be all of same size and height.
https://en.wikipedia.org/wiki/Gaussian_function#Two-dimensional_Gaussian_function
Basically I am asking this question for a 1D array in Processing:
http://stackoverflow.com/questions/24390773/how-do-i-make-a-radial-gradient-of-values-in-a-2d-array
Answers
https://forum.Processing.org/two/discussion/14609/what-is-returned-by-this-function-colors
I am using
PImage:: resize() instead.