Beispiel #1
0
        public ChaosRenderingMachine(string pMachineName, int pDisplayWidth, int pDisplayHeight, SuperColor pInfiniteColor, SuperColor pStartColor, SuperColor pEndColor, int pColorCount)
        {
            //Set the machine name
            this._MachineName = pMachineName;

            //Set the machines viewport size
            this._PixelWidth  = pDisplayWidth;
            this._PixelHeight = pDisplayHeight;

            //Define a color to represent "infinite"
            this._InfiniteColor = pInfiniteColor;

            //Create a simple Gradient Pallete
            this._Palette = new SuperImagePalette(pStartColor, pEndColor, pColorCount);

            //Create a simple image; later this could end up being a "subsuper" image?  Only buffers no gtk
            this._MachineOutputImage = new SuperImage(this._PixelWidth, this._PixelHeight, 2);
        }
Beispiel #2
0
        //The simplest Constructor
        public ChaosRenderingMachine(string pMachineName)
        {
            //Set the machine name
            this._MachineName = pMachineName;

            //Set the machines viewport size
            this._PixelWidth  = 400;
            this._PixelHeight = 300;

            //Define a color to represent "infinite"
            this._InfiniteColor = new SuperColor(0, 15, 0);

            //Create a simple 100 color pallette
            SuperColor tmpStartColor = new SuperColor(0, 0, 0);
            SuperColor tmpEndColor   = new SuperColor(255, 255, 255);

            this._Palette = new SuperImagePalette(tmpStartColor, tmpEndColor, 100);

            //Create a simple image; later this could end up being a "subsuper" image?  Only buffers no gtk
            this._MachineOutputImage = new SuperImage(this._PixelWidth, this._PixelHeight);
        }