added PKGBUILD for openssh-dnssec
[mirrors/Programs.git] / java / mandelbrot / testm.java
CommitLineData
84aff5c8
H
1/*
2 * knihovna mandelbrot umi vykreslit do terminalu mandelbrotovu mnozinu
3 * mnoha ruznymy zpusoby - vcetne barev.
4 * tento program demonstruje jeji pouziti
5 * cely sem to zbastlil za jeden vecer podle wikipedie,
6 * takze se neda cekat zadne zazracne formatovani, ani komentare
7 * ucelem je prokazat znalost javy a OP.
8 *
9 * Copylefted by Tomas "Harvie" Mudrunka 2oo9
10 */
11
12
13import mandelbrot.*;
14
15public class testm {
16 public static void main(String[] argv) {
17 //String[] chars = " abc".split("");
18 //System.out.println(chars.length+" "+chars[5]+"---");
19
20 //basic:
21 mandelbrot m = new mandelbrot();
22 m.cls();
23 m.render();
24
25 //advanced:
26 m.max_iteration=28;
27 m.color=true;
28 m.stat();
29 m.render();
30
31 m.zoom=20;
32 m.color=false;
33 m.max_iteration=350;
34 m.stat();
35 m.render();
36
37 m.zoom=65;
38 m.max_iteration=14;
39 m.chars = " ".split("");
40 m.color=false;
41 m.background=true;
42 m.stat();
43 m.render();
44
45 m = new mandelbrot(); //reset to defaults (garbage collector will get rid of the old instance)
46
47 m.zoom=1000;
48 m.max_iteration=14;
49 m.background=true;
50 m.color=true;
51 m.x_from=-0.6;
52 m.x_to=-0.3;
53 m.y_from=-0.7;
54 m.y_to=-0.5;
55 m.stat();
56 m.render();
57 }
58}
This page took 0.989045 seconds and 4 git commands to generate.