Struct RgbaColor
Namespace: VelloSharp.Charting.Styling
Assembly: VelloSharp.Charting.dll
Simple RGBA color representation using normalized components.
public readonly record struct RgbaColor : IEquatable<RgbaColor>
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
RgbaColor(byte, byte, byte, byte)
Simple RGBA color representation using normalized components.
public RgbaColor(byte R, byte G, byte B, byte A)
Parameters
R
byte
G
byte
B
byte
A
byte
Fields
Transparent
public static readonly RgbaColor Transparent
Field Value
Properties
A
public byte A { get; init; }
Property Value
B
public byte B { get; init; }
Property Value
G
public byte G { get; init; }
Property Value
R
public byte R { get; init; }
Property Value
Methods
FromChartColor(ChartColor)
public static RgbaColor FromChartColor(ChartColor color)
Parameters
color
ChartColor
Returns
FromHex(uint)
public static RgbaColor FromHex(uint hex)
Parameters
hex
uint
Returns
ToHex()
public uint ToHex()
Returns
ToVelloColor()
public RgbaColor ToVelloColor()
Returns
WithAlpha(byte)
public RgbaColor WithAlpha(byte alpha)
Parameters
alpha
byte