Struct PluginColor
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
A colour with an opacity, one byte per channel.
public readonly record struct PluginColor : IEquatable<PluginColor>
- Implements
- Inherited Members
Constructors
PluginColor(byte, byte, byte, byte)
A colour with an opacity, one byte per channel.
public PluginColor(byte R, byte G, byte B, byte A = 255)
Parameters
RbyteRed, 0 to 255.
GbyteGreen, 0 to 255.
BbyteBlue, 0 to 255.
AbyteOpacity, 0 (transparent) to 255 (opaque).
Properties
A
Opacity, 0 (transparent) to 255 (opaque).
public byte A { get; init; }
Property Value
B
Blue, 0 to 255.
public byte B { get; init; }
Property Value
G
Green, 0 to 255.
public byte G { get; init; }
Property Value
R
Red, 0 to 255.
public byte R { get; init; }
Property Value
Transparent
Transparent black: the colour that clears a canvas.
public static PluginColor Transparent { get; }
Property Value
White
Opaque white: the tint that leaves an image unchanged.
public static PluginColor White { get; }