Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makischristou/mandelbrot
Mandelbrot set visualizer using CUDA.
https://github.com/makischristou/mandelbrot
cpp cuda gpu mandelbrot nvidia renderer rust
Last synced: 15 days 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 (over 2 years ago)
- Default Branch: rusty
- Last Pushed: 2024-04-26T20:37:01.000Z (9 months ago)
- Last Synced: 2025-01-11T18:40:54.312Z (24 days 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 rendererUsage: 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
```![Resulting output](images/file5.png)
## Sample Images
### Resolution: 5000x5000, n_max = 64, s_max = 8, range: -2.0, 2.0, time: 0m12,828s
![Sample 1](images/file1.png)### Resolution: 5000x5000, n_max = 256, s_max = 8, range: 0.2, 0.5, time: 2m19,883s
![Sample 2](images/file2.png)### Resolution: 5000x5000, n_max = 256, s_max = 8, range: 0.35, 0.45, time: 0m30,843s
![Sample 3](images/file3.png)### Resolution: 5000x5000, n_max = 512, s_max = 8, range: 0.35, 0.36, time: 1m30,134s
![Sample 3](images/file4.png)