Skip to content

Tekeo-Ronin/Fractals-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Fraktals generator

fractals

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.

Requirements

To use this project you will need:

Installation

  1. Clone the repository:
    git clone https://github.com/Tekeo-Ronin/Fractal-Generator.git
  1. Go to the folder with the project:
    cd Fractals-Generator
  1. Start Octave by running the command:
    octave
  1. At the Octave command line, run the main.m script to start the fractal generator:
    main.m

More details

Mandelbrot set

  • 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.

Barnsley fern

  • 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.

Julia set

  • 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.

Contributing

Feel free to fork the repository and submit pull requests.

License

This project is licensed under the MIT License. See the LICENSE file for details.