make

fun make(whitePoint: DoubleArray, adaptingLuminance: Double, backgroundLstar: Double, surround: Double, discountingIlluminant: Boolean): ViewingConditions

Create ViewingConditions from a simple, physically relevant, set of parameters.

Parameters

whitePoint

White point, measured in the XYZ color space. default = D65, or sunny day afternoon

adaptingLuminance

The luminance of the adapting field. Informally, how bright it is in the room where the color is viewed. Can be calculated from lux by multiplying lux by 0.0586. default = 11.72, or 200 lux.

backgroundLstar

The lightness of the area surrounding the color. measured by L* in Lab*. default = 50.0

surround

A general description of the lighting surrounding the color. 0 is pitch dark, like watching a movie in a theater. 1.0 is a dimly light room, like watching TV at home at night. 2.0 means there is no difference between the lighting on the color and around it. default = 2.0

discountingIlluminant

Whether the eye accounts for the tint of the ambient lighting, such as knowing an apple is still red in green light. default = false, the eye does not perform this process on self-luminous objects like displays.