Changeset 231 for trunk/SRC/Colors/getcolor.pro
- Timestamp:
- 03/19/07 18:15:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Colors/getcolor.pro
r163 r231 1 1 ;+ 2 2 ; 3 ; @file_comments 3 ; @file_comments 4 4 ; The original purpose of this function was to enable the 5 5 ; user to specify one of the 16 colors supported by the … … 15 15 ; table offered on the IDL newsgroup by Liam Gumley.) 16 16 ; 17 ; @categories Graphics, Color 18 ; 19 ; @param thisColor {in}{optional} 17 ; @categories 18 ; Graphics, Color 19 ; 20 ; @param thisColor {in}{optional} 20 21 ; A string with the "name" of the color. Valid names are: 21 22 ; black … … 39 40 ; Case is unimportant. 40 41 ; 41 ; 42 ; @param index {in}{optional} 42 ; @param index {in}{optional} 43 43 ; The color table index where the specified color should be loaded. 44 44 ; … … 68 68 ; 69 69 ; 70 ; @keyword NAMES 70 ; @keyword NAMES 71 71 ; If this keyword is set, the return value of the function is 72 72 ; a 16-element string array containing the names of the colors. … … 77 77 ; listID = Widget_List(baseID, Value=GetColor(/Names), YSize=16) 78 78 ; 79 ; @keyword LOAD 79 ; @keyword LOAD 80 80 ; If this keyword is set, all 16 colors are automatically loaded 81 81 ; starting at the color index specified by the START keyword. … … 96 96 ; IDL 5.2 and higher. 97 97 ; 98 ; @keyword TRUE 98 ; @keyword TRUE 99 99 ; If this keyword is set, the specified color triple is returned 100 100 ; as a 24-bit integer equivalent. The lowest 8 bits correspond to … … 104 104 ; were set. 105 105 ; 106 ; @restrictions 106 ; @restrictions 107 107 ; The TRUE keyword causes the START keyword to be ignored. 108 ; The NAMES keyword causes the COLOR, INDEX, START, and TRUE parameters to be 108 ; The NAMES keyword causes the COLOR, INDEX, START, and TRUE parameters to be 109 109 ; ignored. 110 110 ; The COLOR parameter is ignored if the LOAD keyword is used. … … 113 113 ; returned if color decomposition is ON. 114 114 ; 115 ; @examples 115 ; @examples 116 116 ; To load a yellow color in color index 100 and plot in yellow, type: 117 117 ; … … 177 177 ; IDL> PLOT, data, Color=colors.yellow 178 178 ; 179 ; @history 179 ; @history 180 180 ; Written by: David Fanning, 10 February 96. 181 181 ; Fixed a bug in which N_ELEMENTS was spelled wrong. 7 Dec 96. DWF … … 187 187 ; Added LOAD AND START keywords. 7 June 99. DWF. 188 188 ; 189 ; @version $Id$ 189 ; @version 190 ; $Id$ 190 191 ;- 191 192 ; 192 193 FUNCTION getcolor, thisColor, index, TRUE=truecolor, $ 193 194 NAMES=colornames, LOAD=load, START=start
Note: See TracChangeset
for help on using the changeset viewer.