Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


Harris Geospatial / Docs Center / Libraries / Coyote / COLORSAREIDENTICAL

COLORSAREIDENTICAL

COLORSAREIDENTICAL

Description


  Returns a 1 if the two input colors refer to the same color, otherwise returns a 0.

Categories


    Graphics Utility
   

Params


    color_1: in, required, type=string/integer/long
        The first color to compare for "equality".
    color_2: in, required, type=string/integer/long
        The second color to compare for "equality".
     

Keywords


    None.
         

Examples


    Used to compare if two different colors are the same color::
      IDL> Print, ColorsAreIdentical('white', cgColor('white'))
      IDL> Print, ColorsAreIdentical(252, !P.Color)
      IDL> Print, ColorsAreIdentical('white', '255')
     

Author


      FANNING SOFTWARE CONSULTING::
          David W. Fanning
          1645 Sheely Drive
          Fort Collins, CO 80526 USA
          Phone: 970-221-0438
          E-mail: david@idlcoyote.com
          Coyote's Guide to IDL Programming: http://www.idlcoyote.com

History


    Change History::
        Written, 24 December 2010. DWF.
        Fixed a typo when first color is INTEGER and second color is STRING. 3 Jan 2011. DWF.
        Added error handling for out of bounds color values. 25 May 2011. DWF.

Copyright


    Copyright (c) 2010, Fanning Software Consulting, Inc.



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us