Skip to content

LummiGhost/Mandelbrot-set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fa589d1 · Aug 8, 2023

History

4 Commits
Oct 22, 2020
Oct 22, 2020
Oct 22, 2020
Oct 22, 2020
Aug 8, 2023
Aug 8, 2023
Oct 22, 2020

Repository files navigation

生成曼德勃罗集图像

GPU版本暂时无法使用!!! GPU版本暂时无法使用!!! GPU版本暂时无法使用!!!

随便写的,玩玩而已,功能还不完善。 借鉴了其他大佬的思路。

依赖库

  • numpy
  • matplotlab
  • numba (cuda GPU support)(但是GPU版目前用不了)
pip install numpy,matplotlib,numba

实例

from try2 import mandelbrot
import matplotlab as mp
mp.hot()
mandelbrot([-0.56,-0.53],[-0.55,-0.52],100)
#前两个参数为需要生成的图形的区域(建议传入方形区域,不然可能会变形。),最后一个参数是方阵的阶数。
#更新:已支持非方形区域,最后一个参数为y轴的分辨率,x轴分辨率将根据区域的形状自动计算。
mp.show()

目前还有很多要改的地方。本来还想加入捕获matplotlab的鼠标事件的交互功能,但是实在没精力了。 随缘更新吧。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published