namespace RPiRgbLEDMatrix;
///
/// Represents an RGB (red, green, blue) color
///
public struct Color
{
///
/// The red component value of this instance.
///
public byte R;
///
/// The green component value of this instance.
///
public byte G;
///
/// The blue component value of this instance.
///
public byte B;
///
/// Creates a new color from the specified color values (red, green, and blue).
///
/// The red component value.
/// The green component value.
/// The blue component value.
public Color(int r, int g, int b) : this((byte)r, (byte)g, (byte)b) { }
///
/// Creates a new color from the specified color values (red, green, and blue).
///
/// The red component value.
/// The green component value.
/// The blue component value.
public Color(byte r, byte g, byte b) => (R, G, B) = (r, g, b);
}