Skip to main content

Struct CompositionColor

Namespace: VelloSharp.Composition
Assembly: VelloSharp.Composition.dll

public readonly record struct CompositionColor : IEquatable<CompositionColor>

Implements

IEquatable<CompositionColor>

Inherited Members

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

Constructors

CompositionColor(float, float, float, float)

public CompositionColor(float R, float G, float B, float A = 1)

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

Clamp()

public CompositionColor Clamp()

Returns

CompositionColor