| Age | Commit message (Collapse) | Author |
|
|
|
- Random supersampling (prettier but quite slow)
- WIP: bette color gradient
|
|
- 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
|
|
A Config struct and more getopt options for window size, real/imag
range, center position.
|
|
Stop using the complex standard lib, replaced it with a variables
for the real part and imaginary part of z.
|
|
Zooming and moving is proportionnal to the range we are viewing,
feels more natural than incrementing by a constant value.
|
|
Added color palette instead of brighness level to display the set
boundaries.
Vim-like shortcut to move around.
|
|
|
|
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.
|
|
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)
|
|
Compute if a number is in Mandelbrot set.
Print it to the terminal.
|