001/* Copyright (C) Cross The Road Electronics 2024 */ 002package com.ctre.phoenix.led; 003 004/** 005 * Animation that fades all the LEDs of a strip simultaneously between Red, Green, and Blue 006 */ 007public class RgbFadeAnimation extends BaseStandardAnimation { 008 /** 009 * Constructor for an RgbFadeAnimation 010 * @param brightness How bright the LEDs are [0, 1] 011 * @param speed How fast the LEDs fade between Red, Green, and Blue [0, 1] 012 * @param numLed How many LEDs are controlled by the CANdle 013 * @param ledOffset Where to start the animation 014 */ 015 public RgbFadeAnimation(double brightness, double speed, int numLed, int ledOffset) { 016 super(0x63, brightness, speed, numLed, 0, 0, false, ledOffset); 017 } 018 /** 019 * Constructor for an RgbFadeAnimation 020 * @param brightness How bright the LEDs are [0, 1] 021 * @param speed How fast the LEDs fade between Red, Green, and Blue [0, 1] 022 * @param numLed How many LEDs are controlled by the CANdle 023 */ 024 public RgbFadeAnimation(double brightness, double speed, int numLed) { 025 this(brightness, speed, numLed, 0); 026 } 027 /** 028 * Constructor for an RgbFadeAnimation. 029 * Call the individual setters to tune the animation. 030 */ 031 public RgbFadeAnimation() { 032 this(1, 1, -1, 0); 033 } 034}