Ignore:
Timestamp:
03/19/07 18:15:51 (17 years ago)
Author:
pinsard
Message:

improvements/corrections of some *.pro headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Colors/color24.pro

    r163 r231  
    11;+ 
    22; 
    3 ; @file_comments  
     3; @file_comments 
    44; The purpose of this function is to convert a RGB color triple 
    5 ; into the equivalent 24-big long integer.  
     5; into the equivalent 24-big long integer. 
     6; This routine was written to be used with routines like COLORS or 
     7; <pro>GETCOLOR</pro>. 
    68; 
    7 ; @categories Graphics, Color 
     9; @categories 
     10; Graphics, Color 
    811; 
    9 ; @param rgb_triple {in}{required}  
    10 ; A three-element column or row array representing  
     12; @param rgb_triple {in}{required} 
     13; A three-element column or row array representing 
    1114; a color triple. The values of the elements must be between 0 and 255. 
    1215; 
    13 ; @returns  
    14 ; a 24-bit long integer that is equivalent the input color.  
     16; @returns 
     17; a 24-bit long integer that is equivalent the input color. 
    1518; The color is described in terms of a hexadecimal number (e.g., FF206A) 
    16 ; where the left two digits represent the blue color, the  
    17 ; middle two digits represent the green color, and the right  
     19; where the left two digits represent the blue color, the 
     20; middle two digits represent the green color, and the right 
    1821; two digits represent the red color. 
    1922; 
    20 ; @examples  
    21 ; To convert the color triple for the color YELLOW,  
    22 ; (255, 255, 0), to the hexadecimal value '00FFFF'x  
     23; @examples 
     24; To convert the color triple for the color YELLOW, 
     25; (255, 255, 0), to the hexadecimal value '00FFFF'x 
    2326; or the decimal number 65535, type: 
    2427; 
    2528; IDL> color = COLOR24([255, 255, 0]) 
    26 ;        
    27 ; This routine was written to be used with routines like COLORS or GETCOLOR 
     29; 
    2830; 
    2931; @history 
    3032;       Written by:     David Fanning, 3 February 96. 
    3133; 
    32 ; @version $Id$ 
     34; @version 
     35; $Id$ 
    3336; 
    3437;- 
     
    3639; 
    3740  compile_opt idl2, strictarrsubs 
    38 ;    
     41; 
    3942ON_ERROR, 1 
    4043 
     
    5154FOR j=0,2 DO num24bit = num24bit + ((rgb_triple[j] MOD 16) * base16[0,j]) + $ 
    5255   (Fix(rgb_triple[j]/16) * base16[1,j]) 
    53     
     56 
    5457RETURN, num24bit 
    55 END  
     58END 
Note: See TracChangeset for help on using the changeset viewer.