https://github.com/makischristou/mandelbrot
Mandelbrot set visualizer using CUDA.
https://github.com/makischristou/mandelbrot
cpp cuda gpu mandelbrot nvidia renderer rust
Last synced: 3 months ago
JSON representation
Mandelbrot set visualizer using CUDA.
- Host: GitHub
- URL: https://github.com/makischristou/mandelbrot
- Owner: MakisChristou
- License: gpl-3.0
- Created: 2022-05-08T14:20:30.000Z (about 4 years ago)
- Default Branch: rusty
- Last Pushed: 2024-04-26T20:37:01.000Z (about 2 years ago)
- Last Synced: 2025-03-06T02:52:30.407Z (over 1 year ago)
- Topics: cpp, cuda, gpu, mandelbrot, nvidia, renderer, rust
- Language: Go
- Homepage:
- Size: 22.2 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yet another Rust Mandelbrot set renderer
## Running
```bash
cargo run --release
```
## Command-line options
```bash
$ mandelbrot --help
Simple mandelbrot fractal renderer
Usage: mandelbrot [OPTIONS]
Options:
-f, --file-path Output image path [default: fractal.png]
--width Output image width [default: 1000]
--height Output image width [default: 1000]
--bounds Start/End coordinate on the complex plane (both x and y) [default: -2,1.5,1.5,-2]
-n, --n-max Number of iterations to do before assuming point is in the set [default: 64]
-s, --s-max Anti-aliasing [default: 4]
-h, --help Print help
-V, --version Print version
-V, --version Print version
```
## Example Run
The following command will render a `fractal.png` file in the current directory.
```bash
$ cargo run --release -- --bounds="-2.0,1.7,1.7,-2.0" --width 2000 --height 2000 -n 16 -s 4
```

## Sample Images
### Resolution: 5000x5000, n_max = 64, s_max = 8, range: -2.0, 2.0, time: 0m12,828s

### Resolution: 5000x5000, n_max = 256, s_max = 8, range: 0.2, 0.5, time: 2m19,883s

### Resolution: 5000x5000, n_max = 256, s_max = 8, range: 0.35, 0.45, time: 0m30,843s

### Resolution: 5000x5000, n_max = 512, s_max = 8, range: 0.35, 0.36, time: 1m30,134s
