Package playn.core

Class Gradient.Linear

java.lang.Object
playn.core.Gradient.Config
playn.core.Gradient.Linear
Enclosing class:
Gradient

public static class Gradient.Linear extends Gradient.Config
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 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)