TonalMaterialColor

Sealed Class
Generated swatch backed by a tonal palette. This replaces the old MaterialColor wrapper behavior.

Properties

Palette: TonalPalette
Seed: Hct
this[int]: Color
Resolves a shade by weight.

Constructors

TonalMaterialColor(hct: Hct, name: string)
TonalMaterialColor(argb: int, name: string)
TonalMaterialColor(tonalPalette: TonalPalette, name: string)
TonalMaterialColor(argb: uint, name: string)

Methods

ToToneSwatch(tones: double[]): Color[]
Returns a swatch for arbitrary HCT tone values.

Operators

Hct(materialColor: TonalMaterialColor): Hct
TonalPalette(materialColor: TonalMaterialColor): TonalPalette

Inherited Members

Extension Methods

DescribeIdentityShortHashToStringNullable

On this page