www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/02/24/12:30:07

From: Kev <krugman AT blueyonderspammaps DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ALLEGRO: help with ARC
Message-ID: <inkk5vc2iv05t512p73ot3sb5jmq19958v@4ax.com>
References: <8d3750b48cafc870dd036fac3f43e856 DOT 113557 AT mygate DOT mailgate DOT org>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Lines: 37
Date: Mon, 24 Feb 2003 17:20:23 +0000
NNTP-Posting-Host: 62.31.215.114
X-Complaints-To: abuse AT blueyonder DOT co DOT uk
X-Trace: news-binary.blueyonder.co.uk 1046107212 62.31.215.114 (Mon, 24 Feb 2003 17:20:12 GMT)
NNTP-Posting-Date: Mon, 24 Feb 2003 17:20:12 GMT
Organization: blueyonder (post doesn't reflect views of blueyonder)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Mon, 24 Feb 2003 12:50:56 +0000 (UTC), "helen"
<lab_darzo AT libero DOT it> wrote:

>
>I am using Allegro with DJGPP on a win98 OS.
>Everything works fine, but I can't get this to work properly:
>(look under for more questions and details)
>
>/*
Snip
>HELP says
>void arc(BITMAP *bmp, int x, y, fixed ang1, ang2, int r, int color);
>Draws a circular arc with centre x, y and radius r, in an anticlockwise
>direction starting from the angle a1 and ending when it reaches a2.
>These values are specified in 16.16 fixed point format, with 256 equal
>to a full circle, 64 a right angle, etc. Zero is to the right of the
>centre point, and larger values rotate anticlockwise from there.
>
>
>thank you
>
>helen
>
>contact me also at skyboxNOSPAM AT infinito DOT it

The start angle, ang1 is 30, this is a twelth of a circle.
a twelth of 256 is 21.3 recurring

the end angle is 300 this is 5/6 of a circle and 5/6
of 256 is 213.3 recurring

So, I would say that ang1 should be 21.333
and ang2 should be 213.333

Never used the arc() function myself, but this feels about right

Kev.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019