Skip to main content

Struct RgbaColor

Namespace: VelloSharp
Assembly: VelloSharp.Core.dll

public readonly struct 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; }

Property Value

float

B

public float B { get; }

Property Value

float

G

public float G { get; }

Property Value

float

R

public float R { get; }

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