Skip to main content

Struct ChartColor

Namespace: VelloSharp.ChartEngine
Assembly: VelloSharp.ChartEngine.dll

Represents an RGBA color used for chart rendering.

public readonly record struct ChartColor : IEquatable<ChartColor>

Implements​

IEquatable<ChartColor>

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors​

ChartColor(byte, byte, byte, byte)​

Represents an RGBA color used for chart rendering.

public ChartColor(byte R, byte G, byte B, byte A = 255)

Parameters​

R byte

G byte

B byte

A byte

Properties​

A​

public byte A { get; init; }

Property Value​

byte

B​

public byte B { get; init; }

Property Value​

byte

G​

public byte G { get; init; }

Property Value​

byte

R​

public byte R { get; init; }

Property Value​

byte

Methods​

FromArgb(byte, byte, byte, byte)​

public static ChartColor FromArgb(byte a, byte r, byte g, byte b)

Parameters​

a byte

r byte

g byte

b byte

Returns​

ChartColor

FromRgb(byte, byte, byte)​

public static ChartColor FromRgb(byte r, byte g, byte b)

Parameters​

r byte

g byte

b byte

Returns​

ChartColor