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);
}