Class RandomNoiseEffect

java.lang.Object
org.emrick.project.effect.RandomNoiseEffect
All Implemented Interfaces:
GeneratedEffect

public class RandomNoiseEffect extends Object implements GeneratedEffect
  • Field Details

    • startTime

      private long startTime
    • endTime

      private long endTime
    • duration

      private Duration duration
    • varyBrightness

      private boolean varyBrightness
    • varyColor

      private boolean varyColor
    • varyTime

      private boolean varyTime
    • fade

      private boolean fade
    • colorVariance

      private float colorVariance
    • minBrightness

      private float minBrightness
    • maxBrightness

      private float maxBrightness
    • maxTime

      private long maxTime
    • minTime

      private long minTime
    • color

      private Color color
    • id

      private int id
  • Constructor Details

    • RandomNoiseEffect

      public RandomNoiseEffect(long startTime, long endTime, Duration duration, boolean varyBrightness, boolean varyColor, boolean varyTime, boolean fade, float colorVariance, float minBrightness, float maxBrightness, long maxTime, long minTime, Color color, int id)
  • Method Details

    • getColor

      public Color getColor()
    • setColor

      public void setColor(Color color)
    • getDuration

      public Duration getDuration()
    • setDuration

      public void setDuration(Duration duration)
    • isVaryBrightness

      public boolean isVaryBrightness()
    • setVaryBrightness

      public void setVaryBrightness(boolean varyBrightness)
    • isVaryColor

      public boolean isVaryColor()
    • setVaryColor

      public void setVaryColor(boolean varyColor)
    • isVaryTime

      public boolean isVaryTime()
    • setVaryTime

      public void setVaryTime(boolean varyTime)
    • isFade

      public boolean isFade()
    • setFade

      public void setFade(boolean fade)
    • getColorVariance

      public float getColorVariance()
    • setColorVariance

      public void setColorVariance(float colorVariance)
    • getMinBrightness

      public float getMinBrightness()
    • setMinBrightness

      public void setMinBrightness(float minBrightness)
    • getMaxBrightness

      public float getMaxBrightness()
    • setMaxBrightness

      public void setMaxBrightness(float maxBrightness)
    • getMaxTime

      public long getMaxTime()
    • setMaxTime

      public void setMaxTime(long maxTime)
    • getMinTime

      public long getMinTime()
    • setMinTime

      public void setMinTime(long minTime)
    • getId

      public int getId()
    • setId

      public void setId(int id)
    • getEffectType

      public EffectList getEffectType()
      Specified by:
      getEffectType in interface GeneratedEffect
    • setStartTime

      public void setStartTime(long startTime)
      Specified by:
      setStartTime in interface GeneratedEffect
    • getStartTime

      public long getStartTime()
      Specified by:
      getStartTime in interface GeneratedEffect
    • setEndTime

      public void setEndTime(long endTime)
      Specified by:
      setEndTime in interface GeneratedEffect
    • getEndTime

      public long getEndTime()
      Specified by:
      getEndTime in interface GeneratedEffect
    • generateEffectObj

      public Effect generateEffectObj()
      Specified by:
      generateEffectObj in interface GeneratedEffect
    • generateEffects

      public ArrayList<EffectLEDStripMap> generateEffects(ArrayList<LEDStrip> ledStrips)
      Specified by:
      generateEffects in interface GeneratedEffect