ContrastCurve

A class containing a value that changes with the contrast level.

Usually represents the contrast requirements for a dynamic color on its background. The four values correspond to values 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 get(contrastLevel: Double): Double
Returns the value at a given contrast level.