Scorer class

Constructors

Scorer(QuantizerResult quantizerResult, {double? toneTooLow = 10, double? toneTooHigh = 95, double? minChroma, ColorModel colorModel = ColorModel.kDefault})

Properties

colorModel → ColorModel
final
hashCode → int
The hash code for this object.
no setterinherited
hcts → List<Hct>
final
hctToCount → Map<Hct, int>
final
hueToPercent → List<double>
final
hueToSmearedPercent → List<double>
final
primaryHueToPercent → List<double>
final
primaryHueToSmearedPercent → List<double>
final
quantizerResult → QuantizerResult
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

averagedHctNearHue({required double hue, required double backupTone}) → Hct
huePercent(int hue) → double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
primaryHuePercent(int hue) → double
topHctNearHue({required double hue, required double backupTone}) → Hct
topHctNearHueFrom(Iterable<Hct> candidates, {required double hue, required double backupTone}) → Hct
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

createHueToPercentage(List<Hct> hcts, List<double> hueToPercent, double smearDistance) → List<double>