Ejemplo n.º 1
0
        public MandelbrotMountain()
        {
            solver = new MandelbrotSolver();

            var brush = new LinearGradientBrush();
            brush.StartPoint = new Point(0, 0);
            brush.EndPoint = new Point(1, 0);
            brush.GradientStops.Add(new GradientStop(Color.FromRgb(0, 7, 100), 0));
            brush.GradientStops.Add(new GradientStop(Color.FromRgb(32, 107, 203), 0.15));
            brush.GradientStops.Add(new GradientStop(Color.FromRgb(237, 255, 255), 0.42));
            brush.GradientStops.Add(new GradientStop(Color.FromRgb(255, 170, 0), 0.64));
            brush.GradientStops.Add(new GradientStop(Color.FromRgb(0, 0, 0), 0.854));
            //      brush.GradientStops.Add(new GradientStop(Color.FromRgb(0, 7, 100), 1.0));
            gradientMaterial = MaterialHelper.CreateMaterial(brush,null,Brushes.Gray,1.0,200);

            MaxIterations = 32;
            HeightFactor = 0.3;

            Generate();
        }
Ejemplo n.º 2
0
        public MandelbrotMountain()
        {
            solver = new MandelbrotSolver();

            var brush = new LinearGradientBrush();

            brush.StartPoint = new Point(0, 0);
            brush.EndPoint   = new Point(1, 0);
            brush.GradientStops.Add(new GradientStop(Color.FromRgb(0, 7, 100), 0));
            brush.GradientStops.Add(new GradientStop(Color.FromRgb(32, 107, 203), 0.15));
            brush.GradientStops.Add(new GradientStop(Color.FromRgb(237, 255, 255), 0.42));
            brush.GradientStops.Add(new GradientStop(Color.FromRgb(255, 170, 0), 0.64));
            brush.GradientStops.Add(new GradientStop(Color.FromRgb(0, 0, 0), 0.854));
            //      brush.GradientStops.Add(new GradientStop(Color.FromRgb(0, 7, 100), 1.0));
            gradientMaterial = MaterialHelper.CreateMaterial(brush, null, Brushes.Gray, 1.0, 200);

            MaxIterations = 32;
            HeightFactor  = 0.3;

            Generate();
        }