GridColor
public readonly struct GridColor
Namespace SharpCell.Grid · package SharpCell.Grid
An opaque or translucent sRGB colour.
Constructors
GridColor(byte, byte, byte, byte)
public GridColor(byte R, byte G, byte B, byte A = 255)
An opaque or translucent sRGB colour.
Parameters
R: Red, 0 to 255.G: Green, 0 to 255.B: Blue, 0 to 255.A: Opacity, 0 (transparent) to 255 (opaque).
Properties
A
public byte A { get; init; }
Opacity, 0 (transparent) to 255 (opaque).
B
public byte B { get; init; }
Blue, 0 to 255.
G
public byte G { get; init; }
Green, 0 to 255.
R
public byte R { get; init; }
Red, 0 to 255.
Methods
FromRgb(int)
public static GridColor FromRgb(int rgb)
An opaque colour from a 0xRRGGBB number.