material_color_utilities library Null safety

Classes

ArgbAndScore
Blend
Functions for blending in HCT and CAM16.
Box
Cam16
CAM16, a color appearance model. Colors are not just defined by their hex code, but rather, a hex code and viewing conditions. [...]
CorePalette
An intermediate concept between the key color for a UI theme, and a full color scheme. 5 tonal palettes are generated, all except one use the same hue as the key color, and all vary in chroma.
CreateBoxesResult
DistanceAndIndex
HctColor
HCT, hue, chroma, and tone. A color system that provides a perceptually accurate color measurement system that can also accurately render what colors will appear as in different lighting environments.
MaximizeResult
Quantizer
QuantizerCelebi
QuantizerMap
QuantizerResult
QuantizerWsmeans
QuantizerWu
Scheme
Prefer ColorScheme. This class is the same concept as Flutter's ColorScheme class, inlined into libmonet to ensure parity across languages.
Score
Given a large set of colors, remove colors that are unsuitable for a UI theme, and rank the rest based on suitability. [...]
TonalPalette
A convenience class for retrieving colors that are constant in hue and chroma, but vary in tone. [...]
ViewingConditions
In traditional color spaces, a color can be identified solely by the observer's measurement of the color. Color appearance models such as CAM16 also use information about the environment where the color was observed, known as the viewing conditions. [...]

Constants

lightnessSearchEndpoint → const double
When the delta between the floor & ceiling of a binary search for J, lightness in CAM16, is less than this, the binary search terminates.
0.01

Functions

findCamByJ(double hue, double chroma, double lstar, ViewingConditions frame) Cam16?
getInt(double hue, double chroma, double lstar) int
getIntInViewingConditions({required double hue, required double chroma, required double lstar, required ViewingConditions frame}) int

Enums

Direction