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
TetrominoShapeThe 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
intThe integer value representing the color.
Fields
empty
Predefined color representing an empty state.
public static readonly ColorImage.Color empty
Field Value
fill
Predefined color representing a filled state.
public static readonly ColorImage.Color fill
Field Value
Methods
Equals(Color)
Determines whether the current color is equal to another color.
public bool Equals(ColorImage.Color other)
Parameters
other
ColorImage.ColorThe other color to compare with.
Returns
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
TetrominoShapeThe shape to convert.
Returns
implicit operator Color(Color)
public static implicit operator Color(ColorImage.Color color)
Parameters
color
ColorImage.Color
Returns
- Color