Package com.formdev.flatlaf.util
Class ColorFunctions.Mix
- java.lang.Object
-
- com.formdev.flatlaf.util.ColorFunctions.Mix
-
- All Implemented Interfaces:
ColorFunctions.ColorFunction
- Enclosing class:
- ColorFunctions
public static class ColorFunctions.Mix extends java.lang.Object implements ColorFunctions.ColorFunction
Mix two colors usingColorFunctions.mix(Color, Color, float). First color is passed toapply(float[]). Second color iscolor2.Use
ColorFunctions.Mix2to tint or shade color.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description Mix(java.awt.Color color2, float weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(float[] hsla)java.lang.StringtoString()
-
-
-
Method Detail
-
apply
public void apply(float[] hsla)
- Specified by:
applyin interfaceColorFunctions.ColorFunction
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-