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
Fields Modifier and Type Field Description floatamountbooleanautoInverseinthslIndexbooleanincreasebooleanrelative
-
Constructor Summary
Constructors Constructor Description HSLIncreaseDecrease(int hslIndex, boolean increase, float amount, boolean relative, boolean autoInverse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(float[] hsla)protected booleanshouldInverse(float[] hsla)StringtoString()
-
-
-
Method Detail
-
apply
public void apply(float[] hsla)
- Specified by:
applyin interfaceColorFunctions.ColorFunction
-
shouldInverse
protected boolean shouldInverse(float[] hsla)
-
-