https://github.com/jp-zuniga/multithreading-mandelbrot
Mandelbrot fractal generator.
https://github.com/jp-zuniga/multithreading-mandelbrot
cpp fractal mandelbrot multithreading
Last synced: 19 days ago
JSON representation
Mandelbrot fractal generator.
- Host: GitHub
- URL: https://github.com/jp-zuniga/multithreading-mandelbrot
- Owner: jp-zuniga
- License: bsd-3-clause
- Created: 2025-11-08T06:50:50.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-14T16:32:30.000Z (8 months ago)
- Last Synced: 2025-11-14T17:37:45.722Z (8 months ago)
- Topics: cpp, fractal, mandelbrot, multithreading
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `multithreading-mandelbrot`
A [Mandelbrot set](https://en.wikipedia.org/wiki/Mandelbrot_set) generator utilizing basic multithreading.
Uses the lightweight [`CImg`](https://github.com/GreycLab/CImg) library for image processing, and `pthread.h` for thread manipulation.
## Usage
### Nix users
Use `nix-shell` to install the necessary dependencies into an ephemeral shell:
```bash
nix-shell shell.nix
# or if you don't use bash:
nix-shell shell.nix --command
```
Now, just run the project with [`just`](https://github.com/casey/just)!
```bash
just run
```
You can see the generated fractal in `out/fractal.png`. Playing around with the constants in [`mandelbrot.h`](./src/include/mandelbrot.h) should yield varying results.
### Linux users
Install all the packages listed in [`shell.nix`](./shell.nix) using your distro's package manager, then build and run the project with `just` as shown previously.
### Everyone Else
You can probably figure it out if you really want to.
---
### [License](./LICENSE)