aboutsummaryrefslogtreecommitdiff
path: root/mandelbrot.c
AgeCommit message (Collapse)Author
2019-09-20Parallel computation, pixel arrayCharles
- All the pixels are stored in an array, put in a surface then a texture so we don't draw each pixel one by one. - The computation of this array is done in parallel (one thread by line) - Use sscanf instead of atoi hack to parse options
2019-09-17OptionsCharles
A Config struct and more getopt options for window size, real/imag range, center position.
2019-08-29Complex number optimizationCharles
Stop using the complex standard lib, replaced it with a variables for the real part and imaginary part of z.
2019-08-28Proportionnal movement and zoomCharles
Zooming and moving is proportionnal to the range we are viewing, feels more natural than incrementing by a constant value.
2019-08-28Color Palette, need shortcutCharles
Added color palette instead of brighness level to display the set boundaries. Vim-like shortcut to move around.
2019-08-28State stores the window size and the domain where to look the setCharles
2019-08-27Brightness level according to step before excusionCharles
The test to check if something is in the set return -1 else returns the number of steps, then map the step to a brightness of the pixel.
2019-08-27Set visualizationCharles
Loop throught each pixel and color it black if its in the set, white otherwise. This is eavily inspired by the coding train video on the subject. (https://www.youtube.com/watch?v=6z7GQewK-Ks)
2019-08-27Initial commitCharles
Compute if a number is in Mandelbrot set. Print it to the terminal.