Changeset 242 for trunk/SRC/Colors


Ignore:
Timestamp:
04/06/07 10:35:17 (17 years ago)
Author:
pinsard
Message:

improvements/corrections of some *.pro headers + replace some message by some report

Location:
trunk/SRC/Colors
Files:
2 edited

Legend:

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

    r237 r242  
    4444 
    4545IF N_ELEMENTS(rgb_triple) NE 3 THEN $ 
    46    MESSAGE, 'Argument must be a three-element vector.' 
     46   ras= report('Argument must be a three-element vector.') 
    4747 
    4848IF MAX(rgb_triple) GT 255 OR MIN(rgb_triple) LT 0 THEN $ 
    49    MESSAGE, 'Argument values must be in range of 0-255' 
     49   ras = report('Argument values must be in range of 0-255') 
    5050 
    5151base16 = [[1L, 16L], [256L, 4096L], [65536L, 1048576L]] 
  • trunk/SRC/Colors/getcolor.pro

    r231 r242  
    298298varInfo = SIZE(thisColor) 
    299299IF varInfo[varInfo[0] + 1] NE 7 THEN $ 
    300    MESSAGE, 'The color name must be a string.' 
     300   ras = report('The color name must be a string.') 
    301301thisColor = STRUPCASE(thisColor) 
    302302 
     
    309309 
    310310IF colorIndex[0] LT 0 THEN BEGIN 
    311    MESSAGE, "Can't find color. Returning YELLOW.", /INFORMATIONAL 
     311   ras= report("Can't find color. Returning YELLOW.", /INFORMATIONAL) 
    312312   colorIndex = 3 
    313313ENDIF 
Note: See TracChangeset for help on using the changeset viewer.