LEGO color representation with 8-bit RGB channels.
void SetGreen(LegoU8 p_green)
Set the green channel value.
LegoColor()
Default constructor.
LegoU8 GetRed()
Get the red channel value.
LegoU8 m_green
Green color component (0x01 offset). [AI].
void SetBlue(LegoU8 p_blue)
Set the blue channel value.
void SetRed(LegoU8 p_red)
Set the red channel value.
LegoResult Read(LegoStorage *p_storage)
Read the color from a storage object in the order red, green, blue (each as a byte).
LegoU8 m_red
Red color component (0x00 offset). [AI].
LegoU8 m_blue
Blue color component (0x02 offset). [AI].
LegoU8 GetGreen()
Get the green channel value.
LegoU8 GetBlue()
Get the blue channel value.
Abstract base class providing an interface for file-like storage with binary and text read/write oper...
[AI] Defines basic fixed-width data types and platform-neutral constants for LEGO Island codebase.
unsigned char LegoU8
[AI] Unsigned 8-bit integer type used throughout LEGO Island.
LegoS32 LegoResult
[AI] Function result type (return code): typically SUCCESS (0) or FAILURE (-1).