File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ int main() {
23
23
double max = -99999 ;
24
24
25
25
unique_ptr<int []> histogram (new int [Mandelbrot::MAX_ITERATIONS]());
26
+ unique_ptr<int []> fractal (new int [WIDTH * HEIGHT]());
27
+
26
28
27
29
for (int y = 0 ; y < HEIGHT; y++) {
28
30
for (int x = 0 ; x < WIDTH; x++) {
@@ -31,6 +33,7 @@ int main() {
31
33
32
34
int iterations = Mandelbrot::getIteration (xFractal, yFractal);
33
35
36
+ fractal[y * WIDTH + x] = iterations;
34
37
35
38
if (iterations != Mandelbrot::MAX_ITERATIONS) {
36
39
@@ -50,7 +53,6 @@ int main() {
50
53
}
51
54
}
52
55
53
- cout << endl;
54
56
55
57
int count = 0 ;
56
58
for (int i = 0 ; i < Mandelbrot::MAX_ITERATIONS; i++) {
@@ -62,7 +64,6 @@ int main() {
62
64
63
65
cout << endl;
64
66
65
- cout << min << " " << max << endl;
66
67
67
68
bitmap.write (" test.bmp" );
68
69
You can’t perform that action at this time.
0 commit comments