Class VortexEffect

java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.effect.VortexEffect
All Implemented Interfaces:
Runnable

public class VortexEffect extends Effect
  • Field Details

    • radius

      public float radius
      Radius of vortex (2)
    • radiusGrow

      public float radiusGrow
      Radius grow per iteration (0.00)
    • initRange

      public float initRange
      Initial range of the vortex (0.0)
    • grow

      public float grow
      Growing per iteration (0.05)
    • radials

      public double radials
      Radials per iteration (PI / 16)
    • circles

      public int circles
      Helix-circles per iteration (3)
    • helixes

      public int helixes
      Amount of helices (4) Yay for the typo
    • step

      protected int step
      Current step. Works as counter
  • Constructor Details

    • VortexEffect

      public VortexEffect(EffectManager effectManager)
  • Method Details

    • reset

      public void reset()
      Description copied from class: Effect
      Effects should override this if they want to be reusable, this is called prior to starting so state can be reset.
      Overrides:
      reset in class Effect
    • onRun

      public void onRun()
      Specified by:
      onRun in class Effect