nanogui: problem with GrArc
Subject:
Re: [nanogui] problem with GrArc
From:
"Greg Haerr" ####@####.####
Date:
13 Sep 2002 04:09:09 -0000
Message-Id: <039901c25ad8$73986c40$3aba46a6@xmission.com>
: GrArc(window->wid,window->gc,100,100,50,50,100,50,100,150,GR_PIE);
:
: ideally this should draw a semicircle .. but what i am getting is an arc
: of approx 300 degrees whose end point lie approx on
: 140,120 and 130,140 (these are just approx values they might not lie on
: the arc)
The ax,ay and bx,by values are not relative to the x,y position, but
based on 0,0 of the arc itself. Try that and see if it helps.
If it still seems buggy, (I duplicated what you're saying, but I think
that your relative coords are off), try using the GrArcAngle
function, and see whether that works. It did for me.
You can take a look at src/demos/nanox/arcdemo.c in the CVS
distribution, it gives and example of how to use GrArc().
Regards,
Greg