Draw a circle enclosed to the other [message #90683] |
Thu, 26 March 2015 05:33  |
g.nacarts
Messages: 148 Registered: November 2013
|
Senior Member |
|
|
Hi
I wanted to create two circles where the one enclosed to the other and I found the circle function which creates circles. What I want is the green and yellow circle as shown in the following page.
https://www.idlcoyote.com/tips/make_circle.html
For some reason I copy paste the whole code
TVLCT, [255,0], [255,255], [0,0], 1
POLYFILL, CIRCLE(65, 65, 20), Color=1, /Device
PLOTS, CIRCLE(130, 130, 30), /Device
PLOTS, CIRCLE(195, 195, 20), /Device, Color=2
PLOTS, CIRCLE(195, 195, 10), /Device, Color=1
But I am ending up only with the white circle created by PLOTS, CIRCLE(130, 130, 30), /Device.
Can anyone help with this?
|
|
|
Re: Draw a circle enclosed to the other [message #90684 is a reply to message #90683] |
Thu, 26 March 2015 05:38  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
g.nacarts@gmail.com writes:
> I wanted to create two circles where the one enclosed to the other and I found the circle function which creates circles. What I want is the green and yellow circle as shown in the following page.
>
> https://www.idlcoyote.com/tips/make_circle.html
>
> For some reason I copy paste the whole code
> TVLCT, [255,0], [255,255], [0,0], 1
> POLYFILL, CIRCLE(65, 65, 20), Color=1, /Device
> PLOTS, CIRCLE(130, 130, 30), /Device
> PLOTS, CIRCLE(195, 195, 20), /Device, Color=2
> PLOTS, CIRCLE(195, 195, 10), /Device, Color=1
>
> But I am ending up only with the white circle created by PLOTS, CIRCLE(130, 130, 30), /Device.
>
> Can anyone help with this?
TVLCT, [255,0], [255,255], [0,0], 1
cgColorFill, CIRCLE(65, 65, 20), Color=1, /Device
cgPLOTS, CIRCLE(130, 130, 30), /Device
cgPLOTS, CIRCLE(195, 195, 20), /Device, Color=2
cgPLOTS, CIRCLE(195, 195, 10), /Device, Color=1
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|