# Python 2.7 Code; Jonathan Frech, 16th of June 2017 # This program takes in Mandelbrot Set ASCII data and # outputs an HTML / JavaScript document to display it. # In the following usage example mandel.py refers to the # main fractal renderer and converter.py to this program. # Usage: python mandel.py | python converter.py > webpage.html import sys,cgi print""" Mandelbrot Set ASCII Viewer

Mandelbrot Set ASCII Viewer


"""%(cgi.escape(str(sys.stdin.read().split("\n\n"))),"8px")