A fractal is an object or quantity that displays self-similarity, in a somewhat technical sense, on all scales. The object need not exhibit exactly the same structure at all scales, but the same "type" of structures must appear on all scales. A plot of the quantity on a log-log graph versus scale then gives a straight line, whose slope is said to be the fractal dimension.
Compile as: g++ -lglut -lGL -lGLU fractal.cpp
run as: ./a.out
Help: "up-arrow-key" OR 'z' OR '+' : Zoom in "down-arrow-key" OR 'Z' OR '-': Zoom out "right-arrow-key" OR 'm': Next fractal "left-arrow-key" OR 'n': Previous fractal "c" OR "C": change color "k": julia factor++ "l": julia factor-- Mouse click : Zoom into particular location Mouse Right Click Menu