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
DayRgbaColorThe colour in the Day palette.
DuskRgbaColorThe colour in the Dusk palette.
NightRgbaColorThe colour in the Night palette.
Properties
Day
The colour in the Day palette.
public RgbaColor Day { get; init; }
Property Value
Dusk
The colour in the Dusk palette.
public RgbaColor Dusk { get; init; }
Property Value
this[PaletteType]
The colour in palette; Day for an unknown palette.
public RgbaColor this[PaletteType palette] { get; }
Parameters
palettePaletteTypeThe palette.
Property Value
Night
The colour in the Night palette.
public RgbaColor Night { get; init; }
Property Value
Methods
FromHex(string, string, string)
Creates the colours from #RRGGBB hex strings.
public static PaletteColors FromHex(string day, string dusk, string night)