Page 1 of 1

Mandelbrot plot (2002)

Posted: 2018-Aug-11 8:51
by 3DfromNULL
This script gives a demonstration of plotting Mandelbrot set and coloring trueSpace (tS) objects. Each pixel's color and height are calculated by x and y coordinates of the point using Python's "complex" type. To get a spectrum of color in RGB, the script uses hsv_to_rgb() of "colorsys" standard module.

Image

You may change some parameter for the range, precision, etc. to get result you want, but too high precision may cause tS crash.

Image

edited on Mar 12 2019:
This script cannot run with Python2. Please use ptsxpy-for-Python3.
Updated the attached script file, 1b->1c so that it can be run with ptsxpy 0.0.7.

Image
Image Image Image Image Image