Viewing contents of file '../idllib/contrib/mallozzi/switch_colors.pro'
; * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
;+
; NAME:
;    SWITCH_COLORS
;
; PURPOSE:
;    Inverts the background and foreground colors
;
; CATEGORY:
;    Plotting
;
; CALLING SEQUENCE:
;    SWITCH_COLORS
;
; INPUTS:
;    NONE
; 
; INPUT PARAMETERS:
;    NONE
; 
; KEYWORD PARAMETERS:
;    NONE
;
; OUTPUTS:
;    NONE
;
; COMMON BLOCKS:
;    NONE
;
; SIDE EFFECTS:
;    Switches foreground and background plotting colors
;
; RESTRICTIONS:
;    NONE
;
; DEPENDENCIES:
;    NONE
;
; MODIFICATION HISTORY:
;	Written: mallozzi@gibson.msfc.nasa.gov, Oct, 1996
;-
PRO SWITCH_COLORS

FOREGROUND_COLOR = !P.COLOR
BACKGROUND_COLOR = !P.BACKGROUND

TEMP = FOREGROUND_COLOR
FOREGROUND_COLOR = BACKGROUND_COLOR
BACKGROUND_COLOR = TEMP

!P.COLOR = FOREGROUND_COLOR
!P.BACKGROUND = BACKGROUND_COLOR



END