Struct Color
- Namespace
- Archipelago.MultiClient.Net.Models
- Assembly
- Archipelago.MultiClient.Net.dll
Polyfill for System.Drawing.Color for games on runtimes which do not supply a System.Drawing.dll
.
Not focused on memory or computation efficiency, we just need something that works reasonably well.
Transparency/alpha channel is not handled.
public struct Color : IEquatable<Color>
- Implements
- Inherited Members
Constructors
Color(byte, byte, byte)
A color
public Color(byte r, byte g, byte b)
Parameters
Fields
Black
Predefined Archipelago Color Black
public static Color Black
Field Value
Blue
Predefined Archipelago Color Blue (used for entrances)
public static Color Blue
Field Value
Cyan
Predefined Archipelago Color Cyan (used for normal items)
public static Color Cyan
Field Value
Green
Predefined Archipelago Color Green (used for found hints)
public static Color Green
Field Value
Magenta
Predefined Archipelago Color Magenta (used for other players)
public static Color Magenta
Field Value
Plum
Predefined Archipelago Color Plum (used for progression item)
public static Color Plum
Field Value
Red
Predefined Archipelago Color Red (used for not found hints)
public static Color Red
Field Value
Salmon
Predefined Archipelago Color Salmon (used for traps)
public static Color Salmon
Field Value
SlateBlue
Predefined Archipelago Color SlateBlue (used for important items)
public static Color SlateBlue
Field Value
White
Predefined Archipelago Color White (default text color)
public static Color White
Field Value
Yellow
Predefined Archipelago Color Yellow (used for the local player)
public static Color Yellow
Field Value
Properties
B
Blue
public byte B { get; set; }
Property Value
G
Green
public byte G { get; set; }
Property Value
R
Red
public byte R { get; set; }
Property Value
Methods
Equals(Color)
public bool Equals(Color other)
Parameters
other
Color
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(Color, Color)
Value Equality
public static bool operator ==(Color left, Color right)
Parameters
Returns
- bool
true, if both sides represent the same color
operator !=(Color, Color)
Value In-Equality
public static bool operator !=(Color left, Color right)
Parameters
Returns
- bool
true, if both sides represent an different color