>  Docs Center  >  Libraries  >  Coyote  >  CGPICKCOLORNAME


  Provides an interactive method of selecting a draw color name. The program is useful
  for learning the color names available in the Coyote Graphics System.


    Graphics, Utilities, Color


      To call the program from the IDL comamnd line::
          IDL> color = cgPickColorName() & Print, color
      To call the program from within a widget program::
          color = cgPickColorName("red", Group_Leader=event.top) & Print, color


      David W. Fanning
      1645 Sheely Drive
      Fort Collins, CO 80526 USA
      Phone: 970-221-0438
      E-mail: david@idlcoyote.com
      Coyote's Guide to IDL Programming: http://www.idlcoyote.com


    Change History::
      Written by: David W. Fanning, 31 August 2000.
      Modified program to read colors from a file and to use more
        colors on 24-bit platforms. 16 October 2000. DWF.
      Added the COLUMNS keyword. 16 October 2000. DWF.
      Fixed a small problem with mapping a modal widget. 2 Jan 2001. DWF
      Now drawing small box around each color. 13 March 2003. DWF.
      Added eight new colors. Total now of 104 colors. 11 August 2005. DWF.
      Modified GUI to display system colors. 13 Dec 2005. DWF.
      Added BREWER keyword to allow Brewer Colors. 15 May 2008. DWF.
      Added all BREWER names to the default naming scheme. 3 July 2008. DWF.
      Set a size for the color name label widget. Otherwise, the widget always
          jumps back to the center of the display when I select a color on UNIX
          machines. Also had to remove TLB updating with UPDATE keyword to avoid
          tickling the same IDL bug. Sigh... 13 March (Friday) 2009.
      Removed system color names, since these are no longer available in cgColor.
          27 Nov 2010. DWF
      Renamed cgPickColorName. 20 Oct 2012. DWF.
      Added 12 colors suggested by Paul Krummel for people with color blindness. See the last line in
          Figure 3 of `this reference <http://www.sron.nl/~pault/>`. 16 Jan 2015. DWF.


    Copyright (c) 2000-2015, Fanning Software Consulting, Inc.

© 2020 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us