Struct ColorImage
- Namespace
- ProjectLCore.GamePieces
- Assembly
- Assembly-CSharp.dll
Represents a 5x5 image where each cells has a certain ColorImage.Color.
public struct ColorImage
- Inherited Members
Constructors
ColorImage(BinaryImage)
Initializes a new instance of the ColorImage struct based on a ProjectLCore.GamePieces.BinaryImage. Cells which are filled in the binary image are set to fill, while empty cells are set to empty.
public ColorImage(BinaryImage image)
Parameters
image
BinaryImageThe binary image used to initialize the color image.
Methods
AddImage(Color, BinaryImage)
Adds a binary image to the current color image, overriding the color of cells specified in the binary image with the given color.
public ColorImage AddImage(ColorImage.Color color, BinaryImage image)
Parameters
color
ColorImage.ColorThe color to apply.
image
BinaryImageThe binary image to add to the current color image.
Returns
- ColorImage
A new ColorImage with the binary image applied.