PaletteWeights class final

The weights used when scoring a candidate color against a target.

Mirrors the Android Palette defaults: saturation (chroma) 0.24, luminance (tone) 0.52, population 0.24.

Constructors

PaletteWeights({double chroma = 0.24, double tone = 0.52, double population = 0.24})
Creates a weight set. The three weights should sum to 1.0.
const

Properties

chroma → double
Weight applied to the chroma-distance score.
final
hashCode → int
The hash code for this object.
no setterinherited
population → double
Weight applied to the population score.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tone → double
Weight applied to the tone-distance score.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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