Package playn.core
Class Gradient.Linear
java.lang.Object
playn.core.Gradient.Config
playn.core.Gradient.Linear
- Enclosing class:
Gradient
Creates a linear gradient fill pattern.
(x0, y0)
and (x1, y1)
specify the
start and end positions, while (colors, positions)
specifies the color stops.-
Field Summary
Fields inherited from class playn.core.Gradient.Config
colors, positions
-
Constructor Summary
ConstructorDescriptionLinear
(float x0, float y0, float x1, float y1, int[] colors, float[] positions) -
Method Summary
-
Field Details
-
x0
public final float x0 -
y0
public final float y0 -
x1
public final float x1 -
y1
public final float y1
-
-
Constructor Details
-
Linear
public Linear(float x0, float y0, float x1, float y1, int[] colors, float[] positions)
-