ViewingConditions class Null safety
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}) -
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.
read-onlyinherited
- nbb → double
-
final
- nC → double
-
final
- ncb → double
-
final
-
rgbD
→ List<
double> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- surround → double
-
final
-
whitePoint
→ List<
double> -
final
- z → double
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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