ContrastCurve

class ContrastCurve(low: Double, normal: Double, medium: Double, high: Double)

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.

Creates a ContrastCurve object.

Parameters

low

Value for contrast level -1.0

normal

Value for contrast level 0.0

medium

Value for contrast level 0.5

high

Value for contrast level 1.0

Constructors

Link copied to clipboard
constructor(low: Double, normal: Double, medium: Double, high: Double)

Functions

Link copied to clipboard
fun get(contrastLevel: Double): Double

Returns the value at a given contrast level.