Class ColorFunctions.Mix
java.lang.Object
com.formdev.flatlaf.util.ColorFunctions.Mix
- All Implemented Interfaces:
ColorFunctions.ColorFunction
- Enclosing class:
ColorFunctions
Mix two colors using
ColorFunctions.mix(Color, Color, float).
First color is passed to apply(float[]).
Second color is color2.
Use ColorFunctions.Mix2 to tint or shade color.
- Since:
- 1.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
color2
-
weight
public final float weight
-
-
Constructor Details
-
Mix
-
-
Method Details
-
apply
public void apply(float[] hsla) - Specified by:
applyin interfaceColorFunctions.ColorFunction
-
toString
-