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_html_output/Colors/getcolor.html

    r338 r402  
    298298 
    299299          <h3>Examples</h3><div class="preformat"> 
     300 
    300301 To load a yellow color in color index 100 and plot in yellow, type: 
    301302 
    302       IDL> yellow = GETCOLOR('yellow', 100) 
    303       IDL> PLOT, data, COLOR=yellow 
     303   IDL> yellow = GETCOLOR('yellow', 100) 
     304   IDL> PLOT, data, COLOR=yellow 
    304305 
    305306 or, 
    306307 
    307       IDL> PLOT, data, COLOR=GETCOLOR('yellow', 100) 
     308   IDL> PLOT, data, COLOR=GETCOLOR('yellow', 100) 
    308309 
    309310 To do the same thing on a 24-bit color system with decomposed color on, type: 
    310311 
    311       IDL> PLOT, data, COLOR=GETCOLOR('yellow', /TRUE) 
     312   IDL> PLOT, data, COLOR=GETCOLOR('yellow', /TRUE) 
    312313 
    313314 or in IDL 5.2 and higher, 
    314315 
    315       IDL> DEVICE, Decomposed=1 
    316       IDL> PLOT, data, COLOR=GETCOLOR('yellow') 
     316   IDL> DEVICE, Decomposed=1 
     317   IDL> PLOT, data, COLOR=GETCOLOR('yellow') 
    317318 
    318319 To load all 16 colors into the current color table, starting at 
    319320 color index 200, type: 
    320321 
    321       IDL> TVLCT, GETCOLOR(), 200 
     322   IDL> TVLCT, GETCOLOR(), 200 
    322323 
    323324 To add the color names to a list widget: 
    324325 
    325       IDL> listID = Widget_List(baseID, Value=GetColor(/Names), YSize=16) 
     326   IDL> listID = Widget_List(baseID, Value=GetColor(/Names), YSize=16) 
    326327 
    327328 To load all 16 colors and have the color indices returned in a structure: 
    328329 
    329       IDL> DEVICE, Decomposed=0 
    330       IDL> colors = GetColor(/Load, Start=1) 
    331       IDL> HELP, colors, /Structure 
    332      PLOT, data, COLOR=colors.yellow 
     330   IDL> DEVICE, Decomposed=0 
     331   IDL> colors = GetColor(/Load, Start=1) 
     332   IDL> HELP, colors, /Structure 
     333   IDL> PLOT, data, COLOR=colors.yellow 
    333334 
    334335 To get the direct color values as 24-bit integers in color structure fields: 
    335336 
    336       IDL> DEVICE, Decomposed=1 
    337       IDL> colors = GetColor(/Load) 
    338       IDL> PLOT, data, COLOR=colors.yellow 
     337   IDL> DEVICE, Decomposed=1 
     338   IDL> colors = GetColor(/Load) 
     339   IDL> PLOT, data, COLOR=colors.yellow 
    339340 
    340341 Note that the START keyword value is ignored if on a 24-bit device, 
     
    342343 writing code like this: 
    343344 
    344       IDL> colors = GetColor(/Load) 
    345       IDL> PLOT, data, Color=colors.yellow;           IDL> DEVICE, Decomposed=0 
    346       IDL> colors = GetColor(/Load, Start=1) 
    347       IDL> HELP, colors, /Structure 
    348      PLOT, data, COLOR=colors.yellow 
     345   IDL> colors = GetColor(/Load) 
     346   IDL> PLOT, data, Color=colors.yellow;           IDL> DEVICE, Decomposed=0 
     347   IDL> colors = GetColor(/Load, Start=1) 
     348   IDL> HELP, colors, /Structure 
     349   IDL> PLOT, data, COLOR=colors.yellow 
    349350 
    350351 To get the direct color values as 24-bit integers in color structure fields: 
    351352 
    352       IDL> DEVICE, Decomposed=1 
    353       IDL> colors = GetColor(/Load) 
    354       IDL> PLOT, data, COLOR=colors.yellow 
     353   IDL> DEVICE, Decomposed=1 
     354   IDL> colors = GetColor(/Load) 
     355   IDL> PLOT, data, COLOR=colors.yellow 
    355356 
    356357 Note that the START keyword value is ignored if on a 24-bit device, 
     
    358359 writing code like this: 
    359360 
    360       IDL> colors = GetColor(/Load) 
    361       IDL> PLOT, data, Color=colors.yellow 
     361   IDL> colors = GetColor(/Load) 
     362   IDL> PLOT, data, Color=colors.yellow 
    362363</div> 
    363364          <h3>Version history</h3> 
    364365           
    365366          <h4>Version</h4><div class="preformat"> 
    366  $Id: getcolor.pro 327 2007-12-13 16:22:35Z pinsard $ 
     367 $Id: getcolor.pro 371 2008-08-07 09:32:02Z pinsard $ 
    367368</div> 
    368369          <h4>History</h4><div class="preformat"> 
Note: See TracChangeset for help on using the changeset viewer.