calculateCoolWarmFactor

Computes the cool-warm factor of a color.

The cool-warm factor indicates whether a color is perceived as cool or warm based on color science.

  • Values below 0 are considered cool.

  • Values above 0 are considered warm.

This method uses the Lab/LCH color space and the algorithm from Ou, Woodcock, and Wright. The range of the factor is approximately -9.66 (cool) to 8.61 (warm), assuming maximum Lab chroma.

Return

A value indicating the cool-warm factor of the color. Values below 0 are cool, and values above 0 are warm.

Parameters

color

The color to compute the cool-warm factor for.