comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Shaded circles request.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Shaded circles request. [message #7996 is a reply to message #7910] Tue, 28 January 1997 00:00 Go to previous message
Kevin Ivory is currently offline  Kevin Ivory
Messages: 71
Registered: January 1997
Member
David Fanning gave good tips for the original post from David
Kennedy and supplied source code to return circle coordinates.
The code uses a for loop to calculate the coordinates. It is
generally better to use IDL's implicit array handling.
An IDL function using my preferred method would look like:

function circle, xcenter, ycenter, radius
a = (2*!pi/99.)*findgen(100)
x = xcenter + radius * cos(a)
y = ycenter + radius * sin(a)
return, transpose([[x],[y]])
end

Best regards
Kevin
--
Kevin Ivory Tel: +49 5556 979 434
Max-Planck-Institut fuer Aeronomie Fax: +49 5556 979 240
Postfach 20 mailto:kivory2@gwdg.de
D-37189 Katlenburg-Lindau, GERMANY http://www.gwdg.de/~kivory2/
[Message index]
 
Read Message
Read Message
Previous Topic: Puzzled by colour tables...
Next Topic: Circle drawing request.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:51:39 PDT 2025

Total time taken to generate the page: 0.00445 seconds