ViewingConditions class

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.

For example, white under the traditional assumption of a midday sun white point is accurately measured as a slightly chromatic blue by CAM16. (roughly, hue 203, chroma 3, lightness 100)

This class caches intermediate values of the CAM16 conversion process that depend only on viewing conditions, enabling speed ups.

Constructors

ViewingConditions({required List<double> whitePoint, required double adaptingLuminance, required double backgroundLstar, required double surround, required bool discountingIlluminant, required double backgroundYTowhitePointY, required double aw, required double nbb, required double ncb, required double c, required double nC, required List<double> drgbInverse, required List<double> rgbD, required double fl, required double fLRoot, required double z})
const
ViewingConditions.make({List<double>? whitePoint, double adaptingLuminance = -1.0, double backgroundLstar = 50.0, double surround = 2.0, bool discountingIlluminant = false})
Convenience constructor for ViewingConditions.
factory

Properties

adaptingLuminance double
final
aw double
final
backgroundLstar double
final
backgroundYTowhitePointY double
final
c double
final
discountingIlluminant bool
final
drgbInverse List<double>
final
fl double
final
fLRoot double
final
hashCode int
The hash code for this object.
no setterinherited
nbb double
final
nC double
final
ncb double
final
rgbD List<double>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
surround double
final
whitePoint List<double>
final
z double
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

Static Properties

sRgb ViewingConditions
final
standard ViewingConditions
final