Class Patterns

java.lang.Object
ca.team4308.absolutelib.leds.Patterns

public class Patterns extends Object
  • Field Details

  • Constructor Details

    • Patterns

      public Patterns()
  • Method Details

    • idle

      public static LEDPattern idle()
      Creates a standard idle pattern. Gentle breathing effect with the default idle color.
      Returns:
      LEDPattern for idle state
    • warning

      public static LEDPattern warning()
      Creates a warning pattern. Fast blinking with warning color.
      Returns:
      LEDPattern for warning state
    • error

      public static LEDPattern error()
      Creates an error pattern. Rapid blinking with error color.
      Returns:
      LEDPattern for error state
    • success

      public static LEDPattern success()
      Creates a success pattern. Solid success color with optional pulse.
      Returns:
      LEDPattern for success state
    • rainbowChase

      public static LEDPattern rainbowChase()
      Creates a rainbow chase pattern. Scrolling rainbow effect with customizable speed.
      Returns:
      LEDPattern with rainbow chase effect
    • getAlliancePattern

      public static LEDPattern getAlliancePattern(Color color)
      Creates an alliance-colored pattern (red or blue based on driver station)
    • getAllianceBreathing

      public static LEDPattern getAllianceBreathing(Color color, double periodSeconds)
      Creates a breathing alliance-colored pattern
    • createRainbowPattern

      public static LEDPattern createRainbowPattern(int saturation, int value, double speedMPS, double spacing)
      Creates a rainbow pattern with customizable parameters
    • createBreathingPattern

      public static LEDPattern createBreathingPattern(Color baseColor, double periodSeconds)
      Creates a breathing pattern that fades between colors
    • createBlinkingPattern

      public static LEDPattern createBlinkingPattern(Color color, double periodSeconds)
      Creates a blinking pattern
    • createSolidPattern

      public static LEDPattern createSolidPattern(Color color)
      Creates a solid color pattern
    • createProgressPattern

      public static LEDPattern createProgressPattern(Color color, double progress)
      Creates a progress bar pattern
    • chasingDot

      public static LEDPattern chasingDot(Color color)
      Creates a chasing dot pattern. Single color dot moving along the strip.
      Parameters:
      color - The color of the moving dot
      Returns:
      LEDPattern with chasing dot effect
    • scrollingIdle

      public static LEDPattern scrollingIdle(Color baseColor, int scrollSpeed)
      Creates a scrolling idle pattern that transitions from base color to white.
      Parameters:
      baseColor - The base color to fade from
      scrollSpeed - The speed of scrolling
      Returns:
      LEDPattern for scrolling idle state
    • defaultScrollingIdle

      public static LEDPattern defaultScrollingIdle()
      Creates a default scrolling idle pattern using alliance colors.
      Returns:
      LEDPattern for alliance-colored scrolling idle state
    • altF4Pattern

      public static LEDPattern altF4Pattern(double expandSpeed)
      Creates the ALT-F4 pattern This is really oringal guys
      Parameters:
      expandSpeed - Speed of dot expansion (pixels per second)
      Returns:
      LEDPattern for the ALT-F4 effect
    • altF4

      public static LEDPattern altF4()
      Creates the default ALT-F4 pattern with standard speed.
      Returns:
      LEDPattern for the ALT-F4 effect