# -*- coding: utf-8 -*- """ >>> import os >>> import math >>> import random >>> import time >>> from samila import GenerativeImage >>> def f1(x,y): ... result = random.uniform(-1,1) * x**2 - math.sin(y**2) + abs(y-x) ... return result >>> def f2(x,y): ... result = random.uniform(-1,1) * y**3 - math.cos(x**2) + 2*x ... return result >>> g = GenerativeImage(f1,f2) >>> g.generate() >>> g.plot() >>> NFT_STORAGE_API_KEY = os.environ["NFT_STORAGE_API_KEY"] >>> g.generate() >>> g.plot() >>> counter = 0 >>> try_limit = 3 >>> status = False >>> while(status == False and counter>> status True """