Compare Data Member Function

Returns true if the left-hand color is equal to the right-hand color. Otherwise returns false.

Prototype

int32 Compare( Color rhs )

Parameters

Parameter Type Parameter Name Documentation
<Color>rhsA pointer to the right-hand <Color>.

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";

auto Color a = new Color( 255, 128, 64, 255 );
auto Color b = new Color( 255, 128, 64, 255 );
auto Color c = new Color( 128, 64, 32, 255 );

Console.Out( a.Compare( b ) );
Console.Out( b.Compare( c ) );

Results

true
false