getContrast

open fun getContrast(contrastLevel: Double): Double

Returns the contrast ratio at a given contrast level.

Return

The contrast ratio, a number between 1.0 and 21.0.

Parameters

contrastLevel

The contrast level. 0.0 is the default (normal); -1.0 is the lowest; 1.0 is the highest.