Package heronarts.lx.color
Interface GradientUtils.BlendFunction
- Enclosing class:
- GradientUtils
public static interface GradientUtils.BlendFunction
A blend function interpolates between two colors
-
Field Summary
Modifier and TypeFieldDescriptionstatic final GradientUtils.BlendFunction
static final GradientUtils.BlendFunction
static final GradientUtils.BlendFunction
static final GradientUtils.BlendFunction
static final GradientUtils.BlendFunction
-
Method Summary
Modifier and TypeMethodDescriptionstatic GradientUtils.BlendFunction
_HSV
(GradientUtils.HueInterpolation hueLerp) int
blend
(ColorParameter c1, ColorParameter c2, float lerp) Blend between colors specified by color parameters.int
blend
(GradientUtils.ColorStop c1, GradientUtils.ColorStop c2, float lerp) Blend between colors specified as gradient color stops, not necessarily backed by any parameters
-
Field Details
-
RGB
-
HSV
-
HSVM
-
HSVCW
-
HSVCCW
-
-
Method Details
-
blend
Blend between colors specified as gradient color stops, not necessarily backed by any parameters- Parameters:
c1
- Source colorc2
- Destination colorlerp
- Blend amount- Returns:
- Blended color
-
blend
Blend between colors specified by color parameters.- Parameters:
c1
- Source colorc2
- Destination colorlerp
- Blend amount- Returns:
- Blended color
-
_HSV
-