Click or drag to resize

Color Methods

The Color type exposes the following members.

Methods
  NameDescription
Public methodAddGammaCorrection
Returns this color with sRGB gamma correction added to it.
Public methodDarken
Returns this color darkened specified amount.
Public methodEquals(Color)
Indicates whether this instance and a specified object are equal.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberFromInteger(Int32, ColorFormat)
Returns an Color representation of the specified integer.
Public methodStatic memberFromInteger(UInt32, ColorFormat)
Returns an Color representation of this Integer.
Public methodStatic memberFromString
Returns an Color representation of the specified string.
Public methodStatic memberFromVehicleColor
Returns an Color representation of the specified VehicleColor.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetName
Returns the name of this color or null if this color does not have a known name.
Public methodGetType (Inherited from Object.)
Public methodGrayscale
Returns the grayscaled version of this color.
Public methodStatic memberLerp
Performs linear interpolation of Color.
Public methodLighten
Returns this color lightened specified amount.
Public methodRemoveGammaCorrection
Returns this color with sRGB gamma correction removed from it.
Public methodToInteger
Returns an Integer representation of this Color.
Public methodToString
Returns a String representation of this Color.
(Overrides ValueTypeToString.)
Public methodToString(ColorFormat)
Returns a String representation of this Color.
Top
See Also