Tuesday, July 28, 2009

C program for filling a circle?

Hi,


I need a C program which fills a circle on mouse click.


Or even just the circle filling program is fine.

C program for filling a circle?
If you're after maximum speed then try using Bresenhams circle algorithm to determine minx and maxx for each y scan line, and fill it in by drawing horizontal lines (horizontal lines result in the fewest number of cache misses).
Reply:check the pixel if it lies inside circle color it its the easiest way


No comments:

Post a Comment