API Reference › Natives
Color
StructNamespace: SwiftlyS2.Shared.Natives · Assembly: SwiftlyS2.CS2.dll
public struct Color : IEquatable<Color>Implements IEquatable<Color>
Constructors
public Color(byte r, byte g, byte b, byte a)public Color(char r, char g, char b, char a)Methods
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(Color other)Parameters
- otherColorAn object to compare with this object.
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)Parameters
- objobject?The object to compare with the current instance.
Returns
true if obj and this instance are the same type and represent the same value; otherwise, false .
Returns the hash code for this instance.
public override int GetHashCode()Returns the fully qualified type name of this instance.
public override string ToString()