I'm trying to make a shape that is a portion of a ring. Imagine that you took a lifesaver and cut a 45 degree slice from it. The shape I want to make is the 45 degree slice (well, in two dimensions).
So I make two arcs with the same center and different radii, then draw a straight line to close the open ends. So now I have an enclosed shape that looks like a rectangle that was left out in the sun too long and kind of drooped :-) Now I want to flood-fill this shape with a solid color, so I find a point in the middle of my shape and start imagefill() from that point outward. The weird thing is that this works great for certain orientations of the shape, but as I rotate my shape around the center there are orientations where the whole image is filled, not just the shape and not everything but the shape, the whole image. If I display the point where the fill starts, it's inside the shape alright, so that's not the problem. Any ideas? Thanks in advance -- Walt _______________________________________________ UPHPU mailing list UPHPU@uphpu.org http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net