Re:Fractal Generation: A Rustacean’s Prespective (2021)
by pflanze on Thursday September 15, 2022 @01:42AM
(#32847541)
PS. I'll compare versions if you publish your full Rust code.
If you'd like to compare yourself, change `depth` in main.c to 1000, `w` and `h` in `renderScene` to your image size, and change `xcenter`, `ycenter`, and `size` to values that correspond to yours (size is simply the width of the picture in mandelbrot values, instead of pixels). Ah, but it still calculates only 2 pixels at a time, I'll need to look into that tomorrow.
[1] in the "c" folder in https://github.com/pflanze/mandelbrot
(I also implemented the same algorithm again in C++ later on, cleaner, but haven't published that (yet).)