Animatroller.Framework.LogicalDevice.VirtualPixel2D.ShowBuffer C# (CSharp) Method

ShowBuffer() public method

public ShowBuffer ( ) : void
return void
        public void ShowBuffer()
        {
            var output = new Color[PixelWidth, PixelHeight];

            for (int x = 0; x < PixelWidth; x++)
                for (int y = 0; y < PixelHeight; y++)
                {
                    var hsv = new HSV(this.color[x, y]);
                    hsv.Value = hsv.Value * this.brightness[x, y] * this.globalBrightness.Value;

                    output[x, y] = hsv.Color;
                }

            this.showBuffer.OnNext(output);
        }