The function that assigns a color value to the pixel is given by:
color = sin(x2 + y2)
Regular sampling divides the image portion into equal squares, and
computes the value of the above function for the center of each
square.
Random sampling selects a number of points at random in the image
portion and computes the value of the function for those random
points.
Jittered sampling divides the impage portion into equal squares again,
but this time selects not the middle point but a point at random.
Box filter assigns the same value of color to all points in the
portion of the image being computed.
Triangle filter gives more weight to those points nearest the point
with the color being computed.
Or something like that. . . .