Table of Contents

Struct PaletteColors

Namespace
EncDotNet.S100.Portrayals.Application
Assembly
EncDotNet.S100.Portrayals.dll

The Day, Dusk and Night values of one colour token in an ApplicationPalette.

public readonly record struct PaletteColors : IEquatable<PaletteColors>
Implements
Inherited Members

Constructors

PaletteColors(RgbaColor, RgbaColor, RgbaColor)

The Day, Dusk and Night values of one colour token in an ApplicationPalette.

public PaletteColors(RgbaColor Day, RgbaColor Dusk, RgbaColor Night)

Parameters

Day RgbaColor

The colour in the Day palette.

Dusk RgbaColor

The colour in the Dusk palette.

Night RgbaColor

The colour in the Night palette.

Properties

Day

The colour in the Day palette.

public RgbaColor Day { get; init; }

Property Value

RgbaColor

Dusk

The colour in the Dusk palette.

public RgbaColor Dusk { get; init; }

Property Value

RgbaColor

this[PaletteType]

The colour in palette; Day for an unknown palette.

public RgbaColor this[PaletteType palette] { get; }

Parameters

palette PaletteType

The palette.

Property Value

RgbaColor

Night

The colour in the Night palette.

public RgbaColor Night { get; init; }

Property Value

RgbaColor

Methods

FromHex(string, string, string)

Creates the colours from #RRGGBB hex strings.

public static PaletteColors FromHex(string day, string dusk, string night)

Parameters

day string

The Day colour.

dusk string

The Dusk colour.

night string

The Night colour.

Returns

PaletteColors