示例#1
0
文件: j2.py 项目: pysrc/fractal
from fractal import Julia
from fractal.colors import *


def color(i, r=2):
    if i < len(reds) - 1:
        return reds[i]
    return (0, 0, 0)


k = -0.5 - 0.47j
ep = 3
ju = Julia([500, 500], title="%s_%s" % (ep, k))
ju.setExp(ep)
ju.setC(k)
ju.setColor(color)
ju.doJulia(200)
ju.wait()
示例#2
0
from fractal import Julia
ju = Julia([500, 500])
ju.setExp(4)
ju.setC(-0.5 + 0.49j)
ju.setRadius(5)
ju.doJulia(400)
ju.wait()