get method
Returns the value at a given contrast level.
Implementation
double get(double contrastLevel) => switch (contrastLevel) {
<= -1.0 => low,
< 0.0 => MathUtils.lerp(low, normal, contrastLevel + 1.0),
< 0.5 => MathUtils.lerp(normal, medium, contrastLevel / 0.5),
< 1.0 => MathUtils.lerp(medium, high, (contrastLevel - 0.5) / 0.5),
_ => high,
};