Table of Contents

Constructor Color

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

Color(byte, byte, byte, byte)

Constructs a new Color from the given rgba values.

[JsonConstructor]
public Color(byte red, byte green, byte blue, byte alpha = 255)

Parameters

red byte

The red value.

green byte

The green value.

blue byte

The blue value.

alpha byte

The alpha value.

Color(float, float, float, float)

Constructs a new Color from the given rgba values.

public Color(float red, float green, float blue, float alpha = 1)

Parameters

red float

The red value.

green float

The green value.

blue float

The blue value.

alpha float

The alpha value.