Ignore:
Timestamp:
07/07/06 11:57:27 (18 years ago)
Author:
navarro
Message:

english and nicer header (1)

Location:
trunk/SRC/Colors
Files:
1 added
1 moved

Legend:

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

    r132 r133  
    11;+ 
    2 ; NAME: 
    3 ;       COLOR24 
    42; 
    5 ; PURPOSE: 
    6 ;       The purpose of this function is to convert a RGB color triple 
    7 ;       into the equivalent 24-big long integer.  
     3; @file_comments  
     4; The purpose of this function is to convert a RGB color triple 
     5; into the equivalent 24-big long integer.  
    86; 
    9 ; CATEGORY: 
    10 ;       Graphics, Color Specification. 
     7; @categories Graphics, Color Specification. 
    118; 
    12 ; CALLING SEQUENCE: 
    13 ;       color = COLOR24(rgb_triple) 
    14 ; 
    15 ; INPUTS: 
    16 ;       RGB_TRIPLE: A three-element column or row array representing  
     9; @param RGB_TRIPLE {in}{required} A three-element column or row array representing  
    1710;       a color triple. The values of the elements must be between  
    1811;       0 and 255. 
    1912; 
    20 ; KEYWORD PARAMETERS: 
    21 ;       None.  
     13; @returns a 24-bit long integer that is equivalent the input color.  
     14; The color is 
     15; described in terms of a hexidecimal 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  
     18; two digits represent the red color. 
    2219; 
    23 ; COMMON BLOCKS: 
    24 ;       None. 
    25 ; 
    26 ; SIDE EFFECTS: 
    27 ;       None. 
    28 ; 
    29 ; RESTRICTIONS: 
    30 ;       None. 
    31 ; 
    32 ; EXAMPLE: 
    33 ;       To convert the color triple for the color YELLOW,  
     20; @examples To convert the color triple for the color YELLOW,  
    3421;       (255, 255, 0), to the hexadecimal value '00FFFF'x  
    3522;       or the decimal number 65535, type: 
     
    4027;       COLORS or GETCOLOR 
    4128; 
    42 ; MODIFICATION HISTORY: 
     29; @history 
    4330;       Written by:     David Fanning, 3 February 96. 
     31; 
     32; @version $Id$ 
     33; 
    4434;- 
    45  
    46  
    4735FUNCTION COLOR24, number 
    4836; 
    4937  compile_opt idl2, strictarrsubs 
    50 ; 
    51  
    52    ; This FUNCTION accepts a [red, green, blue] triple that 
    53    ; describes a particular color and returns a 24-bit long 
    54    ; integer that is equivalent to that color. The color is 
    55    ; described in terms of a hexidecimal number (e.g., FF206A) 
    56    ; where the left two digits represent the blue color, the  
    57    ; middle two digits represent the green color, and the right  
    58    ; two digits represent the red color. 
    59    ; 
    60    ; The triple can be either a row or column vector of 3 elements. 
    61     
     38;    
    6239ON_ERROR, 1 
    6340 
Note: See TracChangeset for help on using the changeset viewer.