# -*- coding:utf-8 -*-
__projet__ = "mandelbrot"
__nom_fichier__ = "main_fractales"
__author__ = "Christine Fay-Varnier"
__date__ = "avril 2020"

from lecture_fichier_fractale import lire_fichier_fractales
from fractales_julia import *

if __name__ == "__main__":
    # lecture du jeu d'essais
    xmin, xmax, ymin, ymax, nx, ny, nbiter, lcpx = lire_fichier_fractales("source_fractales.txt")

    # for p, cpx in lcpx:
    #     julia = EnsembleJulia(xmin, xmax, ymin, ymax, nx, ny, p, niter=nbiter, c=cpx)
    #     julia.dessineImage()

    # tests mandelbrot
    # fractale = Multibrot(-1, 1, -1.2, 1.2, 100, 100, p=3)
    # fractale = Multibrot(-1, 1, -1.2, 1.2, 100, 100, p=4)
    # fractale = Mandelbrot(-2.1, 0.6, -1.2, 1.2, 200, 200, 256)
    fractale = Mandelbrot(-0.19050, -0.13824, 1.01480, 1.06707, 200, 200)
    fractale.dessineImage()