001package com.ctre.phoenix.led;
002
003/**
004 * Animation that fades into and out of a specified color
005 */
006public class SingleFadeAnimation extends BaseTwoSizeAnimation {
007    /**
008     * Constructor for a SingleFadeAnimation
009     * @param r How much red should the color have [0, 255]
010     * @param g How much green should the color have [0, 255]
011     * @param b How much blue should the color have [0, 255]
012     * @param w How much white should the color have [0, 255]
013     * @param speed How fast should the color travel the strip [0, 1]
014     * @param numLed How many LEDs the CANdle controls
015     */
016    public SingleFadeAnimation(int r, int g, int b, int w, double speed, int numLed) {
017        super(0x64, r, g, b, w, speed, numLed, 0, 0);
018    }
019    /**
020     * Constructor for a SingleFadeAnimation
021     * @param r How much red should the color have [0, 255]
022     * @param g How much green should the color have [0, 255]
023     * @param b How much blue should the color have [0, 255]
024     */
025    public SingleFadeAnimation(int r, int g, int b) {
026        this(r, g, b, 0, 1, -1);
027    }
028}