Skip to main content

Struct RgbaColor

Namespace: VelloSharp
Assembly: VelloSharp.Core.dll

public readonly record struct RgbaColor : IEquatable<RgbaColor>

Implements

IEquatable<RgbaColor>

Inherited Members

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

Constructors

RgbaColor(float, float, float, float)

public RgbaColor(float R, float G, float B, float A)

Parameters

R float

G float

B float

A float

Properties

A

public float A { get; init; }

Property Value

float

B

public float B { get; init; }

Property Value

float

G

public float G { get; init; }

Property Value

float

R

public float R { get; init; }

Property Value

float

Methods

FromBytes(byte, byte, byte, byte)

public static RgbaColor FromBytes(byte r, byte g, byte b, byte a = 255)

Parameters

r byte

g byte

b byte

a byte

Returns

RgbaColor