Skip to content

Jeswin-8802/The-Burning-Ship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The-Burning-Ship

A variation of the Mandelbrot fractal, it creates a fractal pattern that resembles a buning ship.

Description

The equation for the mandelbrot fractal is as follows

f(z) = z 2 + c
where, z and c are complex numbers

The only change we make here is to z by taking it's absolute value

f(z) = | z | 2 + c

Such a small change is enought to change the pattern entirely from that of a bean(Mandelbrot) to what it is now.

We plot points on the screen such that the function above is recursively iterated to see that it does not diverge to infinity. The boundary that demarcates this diversion is a parameter that must be set so that we can stop iterating once it crosses it and is effectively the cicumference of a cirle drawn from the center of the pattern. Here, we are setting it to 16.

Screenshot 2022-05-17 201955

Screenshot 2022-05-17 202854

Screenshot 2022-05-17 202210


Controls

Left Click to zoom in

Right Click to zoom out

References