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

Pixel1D() public method

public Pixel1D ( string name, int pixels ) : System
name string
pixels int
return System
        public Pixel1D(string name, int pixels)
        {
            this.name = name;
            if (pixels <= 0)
                throw new ArgumentOutOfRangeException("pixels");

            this.pixelCount = pixels;

            this.brightness = new double[pixels];
            this.color = new Color[pixels];

            Executor.Current.Register(this);
        }