xtrans= ytrans= xzoom= yzoom=- root tk(canvas canvas(width= height= canvas grid(image=image new(mode'rgb ',size=( , )draw imagedraw draw(imagefor in range( )c_x ( - )/float(xzoom)+xtrans for in range( ) complex(c_x( - )/float(yzoom)+ytranscount= = while abs( )< and count<max_iterz * + count + draw point(( , )fill=color_convert(count+ ,count+ ,count+ )canvas delete(allphoto=imagetk photoimage(imagecanvas create_image( , ,image=photo,anchor=nwcanvas update(mainloop(the code here runs very slowly there are ways to speed it up somewhatbut python is unfortunately slow for these kinds of things