This project is a simple utility for generating fractals based on the feedback function. It allows you to create fractal images using various algorithms and parameters.
To use this project you will need:
- Clone the repository:
git clone https://github.com/Tekeo-Ronin/Fractal-Generator.git
- Go to the folder with the project:
cd Fractals-Generator
- Start Octave by running the command:
octave
- At the Octave command line, run the
main.m
script to start the fractal generator:
main.m
-
A nested
for
loop is used to iterate over each point on the plane. -
For each point, an iterative process is performed using a
for
loop, computing the value of according to the formula . -
It checks whether the modulus of the obtained value of exceeds 2. If not, the point is considered part of the Mandelbrot set.
-
The number of iterations required for divergence is used to determine the color of each point.
- A
for
loop is used to compute the coordinates of each fern point. - A random rule is chosen, and the computation of the new point's position is based on this rule.
- The process is repeated several times (as determined by the number of iterations) to generate enough points for visualizing the fern.
- Similar to the Mandelbrot set, a
for
loop is used to iteratively compute the values of points on the plane. - Instead of the point being dependent on the coordinates of points on the plane, it is fixed.
- The computation of values follows the formula .
- Each point is considered part of the Julia set if the modulus of the obtained value of does not exceed 2 after a certain number of iterations.
Feel free to fork the repository and submit pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.