[comp.sys.amiga] Filled Ellipses

jesup@steinmetz.steinmetz.UUCP (Randell Jesup) (04/12/87)

In article <140@dana.UUCP> rap@dana.UUCP (Rob Peck) writes:
>I talked to DUCK at one of the BADGE meetings recently and he mentioned
>that all of the circle code actually uses WritePixel.  It could have
>been faster (and someday somebody will make it faster, I'm sure) but
>the pressures of the release time only allowed the crew to just barely
>get the code into 1.2.   The benefit of doing it exactly the way the
>code is now is that it gave the Amiga one-dot-mode, which allows
>the blitter to be used most efficiently for filling the ellipses.

	What does one-dot-mode mean?  Do you mean that when it draws
an ellipse, it always draws it with a 1-bit wide line (ignoring rastport
values)?

>I can envision at a future time somebody allocating a background
>bitmap, rendering (and filling) the ellipse in the background by the 
>most efficient method available, then blitting (ClipBlitTransparent?)
>the resultant ellipse into the target area.  I would assume that the
>result would be faster than the writepixel-per-dot than is now done?
>
>Rob Peck	hplabs!dana!rap

	In using AreaEllipse(), I have found an inconsistency in AreaEllipse:
unlike the other AreaXxxxx calls, AreaEllipse does not use the AOlPen
to outline the ellipse if told to.

	Another thing that is never mentioned in the RKM, is that if you
overlap areas before doing the AreaEnd, the overlaps are clear (not filled).
It makes lots of sense, after reading the Hardware manual, but is not even
implied by the RKM (p.s. this is the old 2-vol pre-AW version).  Is there
any way to get an overlapped pattern?  (It's only a problem because there
is no way to get an arc of an ellipse for an area, only the entire thing.)

	Finally, a request for assistance:  Once I've built my area, and tell
it to AreaEnd and draw it, it does draw it, but seems to totally ignore
the FgPen, BgPen, and DrawMode.  Polygons (not ellipses) do get outlined
correctly in AOlPen.  I have tried useing no AreaPtrn, and a simple
all 1's pattern (AreaPtSz = 0).  It always fills the area with orange (this
is on a standard colored WB.)  The RKM says that AreaFills use the RastPort
variables to decide what to draw (unless you supply a multi-colored pattern.)
Is there something I'm doing wrong?

	Randell Jesup
	jesup@steinmetz.uucp (seismo!rochester!steinmetz!jesup)
	jesup@ge-crd.arpa
	rjesup on Bix