lstarFromY static method

double lstarFromY(
  1. double y
)

Converts a Y value to an L* value.

L* in Lab* and Y in XYZ measure the same quantity, luminance.

L* measures perceptual luminance, a linear scale. Y in XYZ measures relative luminance, a logarithmic scale.

y Y in XYZ Returns L* in Lab*

Implementation

static double lstarFromY(double y) {
  return _labF(y / 100.0) * 116.0 - 16.0;
}