https://github.com/matbme/pad-gb
https://github.com/matbme/pad-gb
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/matbme/pad-gb
- Owner: matbme
- Created: 2023-06-09T00:32:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-16T22:14:52.000Z (over 2 years ago)
- Last Synced: 2025-01-12T23:49:07.621Z (about 1 year ago)
- Language: C
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trabalho GB PAD 2023/1
- Grupos de até 3 pessoas
- Implementação do fractal de Mandelbrot
- Processo 1: Pega a matriz e organiza os jobs
- Job: quadrado ou retângulo com x,y inicial e x,y final
- Processos trabalhadores: pega 1 job, computa o valor do pixel para cada ponto e adiciona na matriz resultado
- Processo impressor: retira 1 resultado, realiza o print na tela
- Possibilitar alterar a complexidade de cores e número de processos trabalhadores
## Usage
Dependencies:
- `freeglut3-dev` (Ubuntu) `freeglut-devel` (Fedora)
```sh
$ make
$ ./fractal
```
## Developing
Dev-dependencies:
- `bear`
Before starting development, you should generate a `compile_commands.json` so linters can identify the include directory and build flags.
```sh
$ make clean; bear -- make
```
## References:
- https://physicspython.wordpress.com/2020/02/16/visualizing-the-mandelbrot-set-using-opengl-part-1/
- https://www.brennengreen.dev/blog/posts/1/
- https://github.com/gendestry/Mandelbrot
- http://nuclear.mutantstargoat.com/articles/sdr_fract/
- https://mathworld.wolfram.com/MandelbrotSet.html
## Credits
- Mandelbrot fractal code obtained from [Rosetta Code](https://rosettacode.org/wiki/Mandelbrot_set)