001package com.ctre.phoenix.led; 002 003/** 004 * Animation that creates a rainbow throughout all the LEDs 005 */ 006public class RainbowAnimation extends BaseStandardAnimation { 007 /** 008 * Constructor for a RainbowAnimation 009 * @param brightness The brightness of the LEDs [0, 1] 010 * @param speed How fast the rainbow travels through the leds [0, 1] 011 * @param numLed How many LEDs are controlled by the CANdle 012 */ 013 public RainbowAnimation(double brightness, double speed, int numLed) { 014 super(0x60, brightness, speed, numLed, 0, 0); 015 } 016 /** 017 * Constructor for a RainbowAnimation 018 * Call the individual setters to tune the Rainbow animation further 019 */ 020 public RainbowAnimation() { 021 this(1, 1, -1); 022 } 023}