Use python openCV and C svpng to show Mandelbrot set.
使用python openCV和C svpng显示曼德博集合。
git clone https://github.com/Kevin0412/Mandelbrot_set.git -b Kevin0412-patch-1
cd Mandelbrot_set
git clone https://github.com/miloyip/svpng.git
pip install opencv-python
Variety 0: mandelbrot (mandelbrot set) 曼德勃罗集
Variety 1: tri (triangular fractal) 三角分形
Variety 2: boat (burning boat fractal) 燃烧船分形
Variety 3: duck (duck fractal) 鸭子分形
Variety 4: bell (bell fractal) 铃铛分形
Variety 5: fish (tropical fish fractal) 热带鱼分形
Variety 6: vase (vase fractral) 花瓶分形
Variety 7: bird (bird fractral) 小鸟分形
Variety 8: mask (mask fractral) 面具分形
Variety 9: ship (ship fractral) 轮船分形
python mandelbrot.py
Double click the window and the image will be enlarged. Press esc to exit. Your runs will be seen in runs dir. Alter variety in line 62.
双击窗口以放大图像。 按esc退出。 运行结果保存于runs文件夹。 可在第62行修改类型。
python big_png.py
You can get a big picture of fractral. Alter value n in line 6 can change size. size=256*2^n. Alter variety in line 5.
获得一张大的分形图片。 改变第6行n的值可以改变图像尺寸。尺寸=256*2^n. 可在第5行修改类型。
Windows:
gcc -lm Mandelbrot_python.c -o Mandelbrot_python.exe
Mandelbrot_python 0 0.0 0.0 test.png 0
Linux:
gcc -lm Mandelbrot_python.c -o Mandelbrot_python.out
./Mandelbrot_python.out 0 0.0 0.0 "test.png" 0
argv[1]: enlarge size 放大尺寸
argv[2]: real part of enlarge center 放大中心实部
argv[3]: imaginary part of enlarge center 放大中心虚部
argv[4]: file name 文件名
argv[5]: varieties (default 0) 类型 (默认0)