Exemplo n.º 1
0
        public Bitmap create(MandelColor color)
        {
            //declare some required variables
            Bitmap mandelBitmap = new Bitmap(width, height);

            //go over every pixel in the bitmap
            for (int x = 0; x < width; x++)
            {
                for (int y = 0; y < height; y++)
                {
                    int n = mandelPointToNumber(pixelToMandelPoint(x, y));
                    mandelBitmap.SetPixel(x, y, color.get(n));
                }
            }

            //return the created bitmap
            return mandelBitmap;
        }
Exemplo n.º 2
0
        public Bitmap create(MandelColor color)
        {
            //declare some required variables
            Bitmap mandelBitmap = new Bitmap(width, height);

            //go over every pixel in the bitmap
            for (int x = 0; x < width; x++)
            {
                for (int y = 0; y < height; y++)
                {
                    int n = mandelPointToNumber(pixelToMandelPoint(x, y));
                    mandelBitmap.SetPixel(x, y, color.get(n));
                }
            }

            //return the created bitmap
            return(mandelBitmap);
        }