!*********************************************************************************************************************************************************!
!* Copyright (c) <2015> <Purdue University> All rights reserved.																					     *!
!*                                                                      																			     *!
!* Developed by:  Fang Jiang, Wenbin Yu                                                                                                                  *!
!*        <Prof. Yu’s Research Group>,                                                                                                                   *!
!*        <School of Aeronautics and Astronautics, Purdue University>                                                                                    *!
!*        <https://cdmhub.org/projects/ansysvabsgui2015>                                                                                                 *!
!*                                                                      																			     *!
!* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),    *!
!* to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,  *!
!* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:            *!
!*                                                                      																			     *!
!* •Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.                        *!
!*                                                                      																			     *!
!* •Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation *!
!*  and/or other materials provided with the distribution.                                                                                               *!
!*                                                                      																			     *!
!* •Neither the names of < Prof. Yu’s Research Group, School of Aeronautics and Astronautics, Purdue University >,                                       *!
!*  nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission.   *!
!*                                                                      																			     *!
!* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   *!
!* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *!
!* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER     *!
!* DEALINGS WITH THE SOFTWARE. 																															 *!
!*********************************************************************************************************************************************************!

!Change color style (white-background / back/words)
!=================================!

*IF,ColorFlag,EQ,0,THEN
  *ELSEIF,ColorFlag,EQ,1,THEN
    ! white background
    /RGB,INDEX,100,100,100, 0   
    /RGB,INDEX,80,80,80,13   
    /RGB,INDEX,60,60,60,14   
    /RGB,INDEX,0,0,0,15
    /REPLOT    
  *ELSEIF,ColorFlag,EQ,2,THEN
    !gray contour
    /RGB,INDEX,0,0,0,0
    /RGB,INDEX,6.66667,6.66667,6.66667,1
    /RGB,INDEX,13.3333,13.3333,13.3333,2
    /RGB,INDEX,20,20,20,3
    /RGB,INDEX,26.6667,26.6667,26.6667,4
    /RGB,INDEX,33.3333,33.3333,33.3333,5
    /RGB,INDEX,40,40,40,6
    /RGB,INDEX,46.6667,46.6667,46.6667,7
    /RGB,INDEX,53.3333,53.3333,53.3333,8
    /RGB,INDEX,60,60,60,9
    /RGB,INDEX,66.6667,66.6667,66.6667,10
    /RGB,INDEX,73.3333,73.3333,73.3333,11
    /RGB,INDEX,80,80,80,12
    /RGB,INDEX,86.6667,86.6667,86.6667,13
    /RGB,INDEX,93.3333,93.3333,93.3333,14
    /RGB,INDEX,100,100,100,15
    /REPLOT
    !white background
    /RGB,INDEX,100,100,100, 0   
    /RGB,INDEX,80,80,80,13   
    /RGB,INDEX,60,60,60,14   
    /RGB,INDEX,0,0,0,15
    /REPLOT    
*ELSE
*ENDIF
