NextFractal is an application for creating fractals and other algorithmically generated images
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

NextFractal 2.0.3

Copyright 2015-2018 Andrea Medeghini

NextFractal is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

NextFractal is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with NextFractal. If not, see


NextFractal depends on several thirdparty libraries including FreeImage, FFmpeg, ANTLR, RichTextFX, ControlsFX and software from Apache Software Foundation.

NextFractal contains code ported to Java from C/C++ code of open source projects Xaos and ContextFree.


NextFractal is an application for creating Fractals and other algorithmically generated images. Images are generated processing a script and some user provided parameters depending on the selected grammar.

NextFractal is currently able to interpret M scripts and CFDG scripts. The M scripts are based on a domain specific language for creating Mandelbrot, Julia and Fatou Sets. The CFDG scripts are based on a context-free grammar for creating geometric shapes using an iterative process.

NextFractal provides also tools for exploring Mandelbrot, Julia and Fatou Sets, browsing images, creating time based and events based animations, and rendering image and video files. NextFractal exports image as PNG files, and videos as AVI or Quicktime files.


NextFractal requires Java SDK 8 or later. You can download the latest SDK from Oracle.

See download page

Java SDK contains the Java compiler which is required to compile code in memory and reduce the rendering time.

NextFractal has been tested on OS X 10.13, Windows 7, and Ubuntu/Linux 14.04.

Windows users must install Visual C++ Redistributable Packages. Linux users must install GNU GCC 4.9 libraries.


Please see documentation of grammars and tutorials on


You can build NextFractal from the source code. Checkout or download the source code from GitHub and run the build script. The build script requires Apache Ant and Apache Maven. By default the script will create a distribution for all platforms. Use a different target to build the distribution for a specific platform only. Apple command-line development tools are also required to build the distribution for MacOS.

Get the code from

git clone

Use default target to build the distribution for all platforms:


Use target build-linux to build Linux distribution:

ant build-linux

Use target build-macos to build MacOS distribution:

ant build-macos

Use target build-win32 to build Windows distribution:

ant build-win32