TonalPalette class final

A convenience class for retrieving colors that are in hue and chroma, but vary in tone.

TonalPalette is intended for use in a single thread due to its stateful caching.

Properties

chroma double
final
hashCode int
The hash code for this object.
no setterinherited
hue double
final
keyColor Hct
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getHct(double tone) Hct
Given a tone, use hue and chroma of palette to create a color, and return it as HCT.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tone(int tone) int
Create an ARGB color with HCT hue and chroma of this Tones instance, and the provided HCT tone.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited