jinmissing
December 6th, 2006, 06:05 AM
Sorry, i'm facing trouble for using function which draw a pixel at specific coordinates to fill up a an arc area. I'm looking for any algorithm which can be help.
For example, i have a cirlce with radius = 50 pixel, and i want to filled up the arc area from 45 degree to 60 degree with JUST using draw pixel function. Is there any way to do it?
what i'm doing now is 3 loop, first loop is looping from 45 degree to 60 degree. Second and third loop is looping from center of the circle to the maximum avalaible coordinates. But I'm not sure for the algorithm to doing the second and third loop, any help will be appreciate
For example, i have a cirlce with radius = 50 pixel, and i want to filled up the arc area from 45 degree to 60 degree with JUST using draw pixel function. Is there any way to do it?
what i'm doing now is 3 loop, first loop is looping from 45 degree to 60 degree. Second and third loop is looping from center of the circle to the maximum avalaible coordinates. But I'm not sure for the algorithm to doing the second and third loop, any help will be appreciate