Returns true if the left-hand color is equal to the right-hand color. Otherwise returns false.
int32 Compare( Color rhs )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Color> | rhs | A pointer to the right-hand <Color>. |
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 ) );
true
false