Question

4. Create an Image of a Circle Write a program called createCircle(r) that, given an input integer r, creates an image of a circle of radius r. The image should be

2r pixels wide, and 2r pixels high. The circle's interior (not including the perimeter) should be black, and the exterior white. That means, the pixel (x,y) inside the circle should be black if it is less than distance r from its radius.

Question image 1