Table of Contents

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

R byte

Red, 0 to 255.

G byte

Green, 0 to 255.

B byte

Blue, 0 to 255.

A byte

Opacity, 0 (transparent) to 255 (opaque).

Properties

A

Opacity, 0 (transparent) to 255 (opaque).

public byte A { get; init; }

Property Value

byte

B

Blue, 0 to 255.

public byte B { get; init; }

Property Value

byte

G

Green, 0 to 255.

public byte G { get; init; }

Property Value

byte

R

Red, 0 to 255.

public byte R { get; init; }

Property Value

byte

Transparent

Transparent black: the colour that clears a canvas.

public static PluginColor Transparent { get; }

Property Value

PluginColor

White

Opaque white: the tint that leaves an image unchanged.

public static PluginColor White { get; }

Property Value

PluginColor