;------------------------------------------------------------- ;+ ; NAME: ; TOPC ; PURPOSE: ; Return top color number for current device. ; CATEGORY: ; CALLING SEQUENCE: ; tc = topc() ; INPUTS: ; KEYWORD PARAMETERS: ; OUTPUTS: ; COMMON BLOCKS: ; NOTES: ; MODIFICATION HISTORY: ; R. Sterner, 1994 Aug 9 ; R. Sterner, 1998 Jan 15 --- Fixed to return color table size, ; not number of colors (24 bit color should now work). ; ; Copyright (C) 1994, Johns Hopkins University/Applied Physics Laboratory ; This software may be used, copied, or redistributed as long as it is not ; sold and this copyright notice is reproduced on each copy made. This ; routine is provided as is without any express or implied warranties ; whatsoever. Other limitations apply as described in the file disclaimer.txt. ;- ;------------------------------------------------------------- function topc, help=hlp if keyword_set(hlp) then begin print,' Return top color table index for current device.' print,' tc = topc()' print,' No arguments.' return,'' endif return, !d.table_size-1 end