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