Package playn.core

Class Gradient.Radial

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

public static class Gradient.Radial extends Gradient.Config
Creates a radial gradient fill pattern. (x, y, r) specifies the circle covered by this gradient, while (colors, positions) specifies the list of color stops.
  • Field Details

    • x

      public final float x
    • y

      public final float y
    • r

      public final float r
  • Constructor Details

    • Radial

      public Radial(float x, float y, float r, int[] colors, float[] positions)