Actually thi is a very good idea!
I'm going to try it right away!

Chris

At 10:26 PM 1/26/2000 , you wrote:
I'd suggest drawing from the edge to the center.
That is, determine each pixel that makes up the
edge of the arc, then draw from it to the center.

If you draw from the center, I am imagining some
sort of code that steps through degrees, or fractions
of degrees, and depending upon the diameter of the
circle of which the wedge is a part, any fraction
of a degree you use may still result in some
non-filled pixels towards the edge of the wedge.

--
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi./sec ... not just a good idea, it's the LAW!


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 26, 2000 11:10 AM
> To: Palm Developer Forum
> Subject: Re: Color and Fill function
>
>
> Yes, flood fill, I was missing the term. I thought about it a
> bit more and
> will just do "arc fill" that means that to draw a pie wedge
> of a certain
> color, I'll just draw many lines of that color from the
> center to the outer
> limits of the pie throughout the angle of the wedge.
>
> It seems like overkill to do a rectangle fill of a pie wedge,
> at least to
> me that sounds pretty complicated!
>
> Chris
>
>
> At 06:21 PM 1/26/2000 , you wrote:
> >At 1:54 PM +0100 25-01-00, Christian Vandendorpe wrote:
> > >I'm in the process of adding pie charts to my program.
> This would look very
> > >cool with color! Only problem is that there is no fill
> function in the OS.
> >
> >You mean no 'flood fill' I think.  You can fill rectangles
> easily enough...
> >
> >We did think about putting this in, but didn't have the time
> and resources
> >to do it.  I think we'd be more likely to do filled polygons
> before flood
> >fill, by the way, but I think filled polygons will get you
> pretty close to
> >pie wedges.
> >
> >If you do get this done yourself, please share the code!
> >
> >                                 --Bob
> >
> >
> >
> >--
> >For information on using the Palm Developer Forums, or to
> unsubscribe,
> >please see http://www.palm.com/devzone/mailinglists.html.
>
> ---
> Christian Vandendorpe ([EMAIL PROTECTED])
> http://www.zorglub.com
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
>

--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palm.com/devzone/mailinglists.html

---
Christian Vandendorpe ([EMAIL PROTECTED])
http://www.zorglub.com



--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to