New Coyote Graphics Program: cgPolygon [message #79744] |
Mon, 26 March 2012 09:28 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
Wayne Landsman had a bit of example code on here yesterday
that didn't work as advertised because the FILL keyword
had not been defined for TVEllipse. He has corrected
that this morning in the latest version of TVEllipse,
but it got me thinking about polygons.
Normally, if you just want to draw a polygon, you use
PlotS. If you want to draw a filled polygon, you use
PolyFill. This can make for some overly-complicated
code.
So, I decided this morning to write a very short
program, named cgPolygon, that can be used to
draw either a filled or unfilled polygon, depending
upon whether the FILL keyword is set. This should
make it much easier to work with polygons in the
future. You can find the new program here:
http://www.idlcoyote.com/programs/cgpolygon.pro
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|