Animatroller.Framework.LogicalDevice.Pixel1D.InjectRev C# (CSharp) Method

InjectRev() public method

public InjectRev ( Color color, double brightness ) : Pixel1D
color Color
brightness double
return Pixel1D
        public Pixel1D InjectRev(Color color, double brightness)
        {
            for (int i = 0; i < this.brightness.Length - 1; i++)
            {
                this.brightness[i] = this.brightness[i + 1];
                this.color[i] = this.color[i + 1];
            }

            this.brightness[this.brightness.Length - 1] = brightness;
            this.color[this.brightness.Length - 1] = color;

            RaiseMultiPixelChanged(0, this.brightness.Length);

            return this;
        }