Package com.formdev.flatlaf.util
Class ColorFunctions.HSLIncreaseDecrease
java.lang.Object
com.formdev.flatlaf.util.ColorFunctions.HSLIncreaseDecrease
- All Implemented Interfaces:
ColorFunctions.ColorFunction
- Enclosing class:
ColorFunctions
public static class ColorFunctions.HSLIncreaseDecrease
extends Object
implements ColorFunctions.ColorFunction
Increase or decrease hue, saturation, luminance or alpha of a color in the HSL color space
by an absolute or relative amount.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal float
final boolean
final int
final boolean
final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionHSLIncreaseDecrease
(int hslIndex, boolean increase, float amount, boolean relative, boolean autoInverse) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(float[] hsla) protected boolean
shouldInverse
(float[] hsla) toString()
-
Field Details
-
hslIndex
public final int hslIndex -
increase
public final boolean increase -
amount
public final float amount -
relative
public final boolean relative -
autoInverse
public final boolean autoInverse
-
-
Constructor Details
-
HSLIncreaseDecrease
public HSLIncreaseDecrease(int hslIndex, boolean increase, float amount, boolean relative, boolean autoInverse)
-
-
Method Details
-
apply
public void apply(float[] hsla) - Specified by:
apply
in interfaceColorFunctions.ColorFunction
-
shouldInverse
protected boolean shouldInverse(float[] hsla) -
toString
-