Class Twinkle

All Implemented Interfaces:
Sendable

public class Twinkle extends Command
Command to move LEDs back and forth like a Cylon eye
  • Constructor Details

    • Twinkle

      public Twinkle(LEDs leds, int count, Color[] colors)
      Creates a twinkle effect
      Parameters:
      leds - The LED Subsystem
      count - The number of LEDs to twinkle
      colors - The colors to randomly select
    • Twinkle

      public Twinkle(LEDs leds, int count)
      Creates a twinkle effect using random colors
      Parameters:
      leds - The LED Subsystem
      count - The number of LEDs to twinkle
    • Twinkle

      public Twinkle(LEDs leds)
      Creates a twinkle effect with 20 LEDs and random colors
      Parameters:
      leds - The LED Subsystem
  • Method Details