Ignore:
Timestamp:
07/23/09 11:18:49 (15 years ago)
Author:
smasson
Message:

update documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/idldoc_assistant_output/Colors/getcolor.html

    r338 r402  
    269269 
    270270    <h3>Examples</h3><pre> 
     271 
    271272 To load a yellow color in color index 100 and plot in yellow, type: 
    272273 
    273       IDL> yellow = GETCOLOR('yellow', 100) 
    274       IDL> PLOT, data, COLOR=yellow 
     274   IDL> yellow = GETCOLOR('yellow', 100) 
     275   IDL> PLOT, data, COLOR=yellow 
    275276 
    276277 or, 
    277278 
    278       IDL> PLOT, data, COLOR=GETCOLOR('yellow', 100) 
     279   IDL> PLOT, data, COLOR=GETCOLOR('yellow', 100) 
    279280 
    280281 To do the same thing on a 24-bit color system with decomposed color on, type: 
    281282 
    282       IDL> PLOT, data, COLOR=GETCOLOR('yellow', /TRUE) 
     283   IDL> PLOT, data, COLOR=GETCOLOR('yellow', /TRUE) 
    283284 
    284285 or in IDL 5.2 and higher, 
    285286 
    286       IDL> DEVICE, Decomposed=1 
    287       IDL> PLOT, data, COLOR=GETCOLOR('yellow') 
     287   IDL> DEVICE, Decomposed=1 
     288   IDL> PLOT, data, COLOR=GETCOLOR('yellow') 
    288289 
    289290 To load all 16 colors into the current color table, starting at 
    290291 color index 200, type: 
    291292 
    292       IDL> TVLCT, GETCOLOR(), 200 
     293   IDL> TVLCT, GETCOLOR(), 200 
    293294 
    294295 To add the color names to a list widget: 
    295296 
    296       IDL> listID = Widget_List(baseID, Value=GetColor(/Names), YSize=16) 
     297   IDL> listID = Widget_List(baseID, Value=GetColor(/Names), YSize=16) 
    297298 
    298299 To load all 16 colors and have the color indices returned in a structure: 
    299300 
    300       IDL> DEVICE, Decomposed=0 
    301       IDL> colors = GetColor(/Load, Start=1) 
    302       IDL> HELP, colors, /Structure 
    303      PLOT, data, COLOR=colors.yellow 
     301   IDL> DEVICE, Decomposed=0 
     302   IDL> colors = GetColor(/Load, Start=1) 
     303   IDL> HELP, colors, /Structure 
     304   IDL> PLOT, data, COLOR=colors.yellow 
    304305 
    305306 To get the direct color values as 24-bit integers in color structure fields: 
    306307 
    307       IDL> DEVICE, Decomposed=1 
    308       IDL> colors = GetColor(/Load) 
    309       IDL> PLOT, data, COLOR=colors.yellow 
     308   IDL> DEVICE, Decomposed=1 
     309   IDL> colors = GetColor(/Load) 
     310   IDL> PLOT, data, COLOR=colors.yellow 
    310311 
    311312 Note that the START keyword value is ignored if on a 24-bit device, 
     
    313314 writing code like this: 
    314315 
    315       IDL> colors = GetColor(/Load) 
    316       IDL> PLOT, data, Color=colors.yellow;           IDL> DEVICE, Decomposed=0 
    317       IDL> colors = GetColor(/Load, Start=1) 
    318       IDL> HELP, colors, /Structure 
    319      PLOT, data, COLOR=colors.yellow 
     316   IDL> colors = GetColor(/Load) 
     317   IDL> PLOT, data, Color=colors.yellow;           IDL> DEVICE, Decomposed=0 
     318   IDL> colors = GetColor(/Load, Start=1) 
     319   IDL> HELP, colors, /Structure 
     320   IDL> PLOT, data, COLOR=colors.yellow 
    320321 
    321322 To get the direct color values as 24-bit integers in color structure fields: 
    322323 
    323       IDL> DEVICE, Decomposed=1 
    324       IDL> colors = GetColor(/Load) 
    325       IDL> PLOT, data, COLOR=colors.yellow 
     324   IDL> DEVICE, Decomposed=1 
     325   IDL> colors = GetColor(/Load) 
     326   IDL> PLOT, data, COLOR=colors.yellow 
    326327 
    327328 Note that the START keyword value is ignored if on a 24-bit device, 
     
    329330 writing code like this: 
    330331 
    331       IDL> colors = GetColor(/Load) 
    332       IDL> PLOT, data, Color=colors.yellow 
     332   IDL> colors = GetColor(/Load) 
     333   IDL> PLOT, data, Color=colors.yellow 
    333334 
    334335    </pre><h3>Version history</h3> 
    335336     
    336337    <h4>Version</h4> 
    337  $Id: getcolor.pro 327 2007-12-13 16:22:35Z pinsard $ 
     338 $Id: getcolor.pro 371 2008-08-07 09:32:02Z pinsard $ 
    338339 
    339340    <h4>History</h4> 
Note: See TracChangeset for help on using the changeset viewer.