ContrastCurve

A class containing the contrast curve for a dynamic color on its background.

The four values correspond to contrast requirements for contrast levels -1.0, 0.0, 0.5, and 1.0, respectively.

Constructors

Link copied to clipboard
constructor(low: Double, normal: Double, medium: Double, high: Double)
Creates a `ContrastCurve` object.

Functions

Link copied to clipboard
open fun getContrast(contrastLevel: Double): Double
Returns the contrast ratio at a given contrast level.