Changeset 371 for trunk/SRC/Colors
- Timestamp:
- 08/07/08 11:32:02 (16 years ago)
- Location:
- trunk/SRC/Colors
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Colors/color24.pro
r327 r371 25 25 ; or the decimal number 65535, type: 26 26 ; 27 ; IDL> color = COLOR24([255, 255, 0]) 28 ; 27 ; IDL> color = COLOR24([255, 255, 0]) 29 28 ; 30 29 ; @history -
trunk/SRC/Colors/colorbar.pro
r358 r371 96 96 ; To display a horizontal color bar above a contour plot, type: 97 97 ; 98 ; IDL> LOADCT, 5, NCOLORS=10099 ; IDL> CONTOUR, DIST(31,41), POSITION=[0.15, 0.15, 0.95, 0.75], $100 ; IDL> C_COLORS=INDGEN(25)*4, NLEVELS=25101 ; IDL> COLORBAR, NCOLORS=10098 ; IDL> LOADCT, 5, NCOLORS=100 99 ; IDL> CONTOUR, DIST(31,41), POSITION=[0.15, 0.15, 0.95, 0.75], $ 100 ; IDL> C_COLORS=INDGEN(25)*4, NLEVELS=25 101 ; IDL> COLORBAR, NCOLORS=100 102 102 ; 103 103 ; @history -
trunk/SRC/Colors/getcolor.pro
r327 r371 114 114 ; 115 115 ; @examples 116 ; 116 117 ; To load a yellow color in color index 100 and plot in yellow, type: 117 118 ; 118 ; 119 ; 119 ; IDL> yellow = GETCOLOR('yellow', 100) 120 ; IDL> PLOT, data, COLOR=yellow 120 121 ; 121 122 ; or, 122 123 ; 123 ; 124 ; IDL> PLOT, data, COLOR=GETCOLOR('yellow', 100) 124 125 ; 125 126 ; To do the same thing on a 24-bit color system with decomposed color on, type: 126 127 ; 127 ; 128 ; IDL> PLOT, data, COLOR=GETCOLOR('yellow', /TRUE) 128 129 ; 129 130 ; or in IDL 5.2 and higher, 130 131 ; 131 ; 132 ; 132 ; IDL> DEVICE, Decomposed=1 133 ; IDL> PLOT, data, COLOR=GETCOLOR('yellow') 133 134 ; 134 135 ; To load all 16 colors into the current color table, starting at 135 136 ; color index 200, type: 136 137 ; 137 ; 138 ; IDL> TVLCT, GETCOLOR(), 200 138 139 ; 139 140 ; To add the color names to a list widget: 140 141 ; 141 ; 142 ; IDL> listID = Widget_List(baseID, Value=GetColor(/Names), YSize=16) 142 143 ; 143 144 ; To load all 16 colors and have the color indices returned in a structure: 144 145 ; 145 ; 146 ; 147 ; 148 ; 146 ; IDL> DEVICE, Decomposed=0 147 ; IDL> colors = GetColor(/Load, Start=1) 148 ; IDL> HELP, colors, /Structure 149 ; IDL> PLOT, data, COLOR=colors.yellow 149 150 ; 150 151 ; To get the direct color values as 24-bit integers in color structure fields: 151 152 ; 152 ; 153 ; 154 ; 153 ; IDL> DEVICE, Decomposed=1 154 ; IDL> colors = GetColor(/Load) 155 ; IDL> PLOT, data, COLOR=colors.yellow 155 156 ; 156 157 ; Note that the START keyword value is ignored if on a 24-bit device, … … 158 159 ; writing code like this: 159 160 ; 160 ; 161 ; 162 ; 163 ; 164 ; 161 ; IDL> colors = GetColor(/Load) 162 ; IDL> PLOT, data, Color=colors.yellow; IDL> DEVICE, Decomposed=0 163 ; IDL> colors = GetColor(/Load, Start=1) 164 ; IDL> HELP, colors, /Structure 165 ; IDL> PLOT, data, COLOR=colors.yellow 165 166 ; 166 167 ; To get the direct color values as 24-bit integers in color structure fields: 167 168 ; 168 ; 169 ; 170 ; 169 ; IDL> DEVICE, Decomposed=1 170 ; IDL> colors = GetColor(/Load) 171 ; IDL> PLOT, data, COLOR=colors.yellow 171 172 ; 172 173 ; Note that the START keyword value is ignored if on a 24-bit device, … … 174 175 ; writing code like this: 175 176 ; 176 ; 177 ; 177 ; IDL> colors = GetColor(/Load) 178 ; IDL> PLOT, data, Color=colors.yellow 178 179 ; 179 180 ; @history
Note: See TracChangeset
for help on using the changeset viewer.