]>
Commit | Line | Data |
---|---|---|
45516216 | 1 | const int MAXX = 1000, MAXY = 1000; |
2 | void mandel(double _Complex Zin, double _Complex C, int mits) { | |
3 | int its = 0; | |
4 | int px, py; | |
5 | double _Complex Z = 0 + 0; | |
6 | for (py = 0; | |
7 | py != MAXY; | |
8 | py++) { | |
9 | for (px = 0; | |
10 | px != MAXX; | |
11 | px++) { | |
12 | C = 4.0 * ((double)px / (double)MAXX) - 2.0 + (__extension__ 1.0iF) * (4.0 * ((double)py / (double)MAXY) - 2.0); | |
13 | while (its < mits) { | |
14 | Z = Z*Z + C; | |
15 | if (cabs(Z) > 2) { | |
16 | break; | |
17 | }; | |
18 | char p[]={ | |
19 | 0,0,0}; | |
20 | }; | |
21 | } | |
22 | }; | |
23 | }; |