ColoringAlgorithmsApplet

August 8, 2004

Enter a formula to serve as the coloring algorithm. The algorithm is applied point by point to build up the final image.

The following parameters and constants are available:

The following functions are available: sin, cos, tan, asin, acos, atan, exp, ln, sqrt, abs, ceil, floor. In addition to these, the usual arithmetic operators +, -, +, / are available, plus exponention ^ and modulus %.

Examples

acos(cos(sin(Zr) * sin(cos(Zi))))
ln(SquaredDistance) / 2 ^ tan(Iteration)
ln(abs(Zr)) * ln(abs(Zi))
cos(Zr) * sin(Zi)
tan(Zr) * tan(Zi)
tan(Zr) * tan(Zi) * cos(SquaredDistance)
tan(Zr) + tan(Zi)

Requirements

JDK 1.1 or above.

Source

The source code for the applet is available in the source directory.

Contact

David Faden

License

This work is licensed under the Creative Commons Attribution-ShareAlike License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.