Class ContrastCurve
- java.lang.Object
-
- org.pushingpixels.ephemeral.chroma.dynamiccolor.ContrastCurve
-
public final class ContrastCurve extends java.lang.Object
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.
-
-
Constructor Summary
Constructors Constructor Description ContrastCurve(double low, double normal, double medium, double high)
Creates a `ContrastCurve` object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
get(double contrastLevel)
Returns the value at a given contrast level.
-
-
-
Constructor Detail
-
ContrastCurve
public ContrastCurve(double low, double normal, double medium, double high)
Creates a `ContrastCurve` object.- Parameters:
low
- Value for contrast level -1.0normal
- Value for contrast level 0.0medium
- Value for contrast level 0.5high
- Value for contrast level 1.0
-
-