Table of Contents

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

r byte

Red

g byte

Green

b byte

Blue

Fields

Black

Predefined Archipelago Color Black

public static Color Black

Field Value

Color

Blue

Predefined Archipelago Color Blue (used for entrances)

public static Color Blue

Field Value

Color

Cyan

Predefined Archipelago Color Cyan (used for normal items)

public static Color Cyan

Field Value

Color

Green

Predefined Archipelago Color Green (used for found hints)

public static Color Green

Field Value

Color

Magenta

Predefined Archipelago Color Magenta (used for other players)

public static Color Magenta

Field Value

Color

Plum

Predefined Archipelago Color Plum (used for progression item)

public static Color Plum

Field Value

Color

Red

Predefined Archipelago Color Red (used for not found hints)

public static Color Red

Field Value

Color

Salmon

Predefined Archipelago Color Salmon (used for traps)

public static Color Salmon

Field Value

Color

SlateBlue

Predefined Archipelago Color SlateBlue (used for important items)

public static Color SlateBlue

Field Value

Color

White

Predefined Archipelago Color White (default text color)

public static Color White

Field Value

Color

Yellow

Predefined Archipelago Color Yellow (used for the local player)

public static Color Yellow

Field Value

Color

Properties

B

Blue

public byte B { get; set; }

Property Value

byte

G

Green

public byte G { get; set; }

Property Value

byte

R

Red

public byte R { get; set; }

Property Value

byte

Methods

Equals(Color)

public bool Equals(Color other)

Parameters

other Color

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(Color, Color)

Value Equality

public static bool operator ==(Color left, Color right)

Parameters

left Color

a color

right Color

a color

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

left Color

a color

right Color

a color

Returns

bool

true, if both sides represent an different color