Table of Contents

Struct ColorImage.Color

Namespace
ProjectLCore.GamePieces
Assembly
Assembly-CSharp.dll

Represents a color.

public struct ColorImage.Color : IEquatable<ColorImage.Color>
Implements
Inherited Members

Constructors

Color(TetrominoShape)

Initializes a new instance of the ColorImage.Color struct based on a ProjectLCore.GamePieces.TetrominoShape.

public Color(TetrominoShape shape)

Parameters

shape TetrominoShape

The shape to derive the color from.

Color(int)

Initializes a new instance of the ColorImage.Color struct with a specified integer value.

public Color(int color)

Parameters

color int

The integer value representing the color.

Fields

empty

Predefined color representing an empty state.

public static readonly ColorImage.Color empty

Field Value

ColorImage.Color

fill

Predefined color representing a filled state.

public static readonly ColorImage.Color fill

Field Value

ColorImage.Color

Methods

Equals(Color)

Determines whether the current color is equal to another color.

public bool Equals(ColorImage.Color other)

Parameters

other ColorImage.Color

The other color to compare with.

Returns

bool

true if the colors are equal; otherwise false.

Operators

explicit operator Color(TetrominoShape)

Explicitly converts a ProjectLCore.GamePieces.TetrominoShape to a ColorImage.Color.

public static explicit operator ColorImage.Color(TetrominoShape shape)

Parameters

shape TetrominoShape

The shape to convert.

Returns

ColorImage.Color

implicit operator Color(Color)

public static implicit operator Color(ColorImage.Color color)

Parameters

color ColorImage.Color

Returns

Color