{"id":26230962,"url":"https://github.com/thefox/mandelbrot-c","last_synced_at":"2026-04-30T05:35:36.466Z","repository":{"id":281366368,"uuid":"945060508","full_name":"TheFox/mandelbrot-c","owner":"TheFox","description":"Generate Mantelbrot set picture","archived":false,"fork":false,"pushed_at":"2025-03-08T15:13:53.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T12:35:13.370Z","etag":null,"topics":["mandelbrot","mandelbrot-set"],"latest_commit_sha":null,"homepage":"https://blog.fox21.at/2015/02/25/mandelbrot-again.html","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheFox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-08T15:11:11.000Z","updated_at":"2025-03-08T15:15:37.000Z","dependencies_parsed_at":"2025-03-08T16:22:38.149Z","dependency_job_id":"f53d2657-5259-42a1-b72d-0dd1c4658aa9","html_url":"https://github.com/TheFox/mandelbrot-c","commit_stats":null,"previous_names":["thefox/mandelbrot-c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheFox/mandelbrot-c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fmandelbrot-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fmandelbrot-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fmandelbrot-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fmandelbrot-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheFox","download_url":"https://codeload.github.com/TheFox/mandelbrot-c/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheFox%2Fmandelbrot-c/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32456166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mandelbrot","mandelbrot-set"],"created_at":"2025-03-12T23:17:49.357Z","updated_at":"2026-04-30T05:35:31.457Z","avatar_url":"https://github.com/TheFox.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mandelbrot\n\nThis script create a picture by using the [Mandelbrot set](http://en.wikipedia.org/wiki/Mandelbrot_set). Source code in C.\n\n## Mac Requirements\n\n- X11: \u003chttp://xquartz.macosforge.org/\u003e\n- Homebrew\n\t- `brew install homebrew/versions/gcc49`\n\t- `brew install imlib2`\n\n## Build\n\n- Basic\n\t\n\t\t( rm -rf build \u0026\u0026 mkdir -p build \u0026\u0026 cd build \u0026\u0026 cmake -DCMAKE_BUILD_TYPE=Release .. \u0026\u0026 make \u0026\u0026 make test ) #cmake\n\t\n\t(On **Mac**) use GCC not Clang because Clang doesn't support OpenMP:\n\t\n\t\t( rm -rf build; mkdir -p build \u0026\u0026 cd build \u0026\u0026 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/local/bin/gcc -DCMAKE_CXX_COMPILER=/usr/local/bin/g++ .. \u0026\u0026 make \u0026\u0026 make test ) #cmake\n\n### Multithreading Support\n\n- GCC\n\t- OpenMP: Yes.\n\t- OpenCL for Mac: No, because the default [GCC doesn't include blocks support](http://stackoverflow.com/questions/4644814/are-objective-c-blocks-supported-by-compilers-on-linux).\n- Clang\n\t- OpenMP: No, because default Clang doesn't include OpenMP support.\n\t- OpenCL: Yes.\n\n## Usage\n\nAfter building you can generate with `./build/bin/mandelbrot` an image:\n\n```bash\n./build/bin/mandelbrot I_WIDTH I_HEIGHT DEPTH_MIN DEPTH_MAX MB_WIDTH_MID MB_WIDTH_ZOOM MB_HEIGHT_MID MB_HEIGHT_MAX\n```\n\nExample:\n\n```bash\n./build/bin/mandelbrot 1024 1024 1 100 -.5 2 0 2\n```\n\nThis will generate an 1024x1024 pixel image with depth 1 to 100. The real part coordinate -.5 and the imaginary part coordinate 0 will be centered to the image.\n\n### Arguments\n\n- `I_WIDTH`: The width of the image.\n- `I_HEIGHT`: The height of the image.\n- `DEPTH_MIN`: The minimum depth. Default 1.\n- `DEPTH_MAX`: The maximum depth.\n- `MB_WIDTH_MID`: Real part (CR).\n- `MB_WIDTH_ZOOM`: Zoom of CR.\n- `MB_HEIGHT_MID`: Imaginary part (CI).\n- `MB_HEIGHT_MAX`: Zoom of CI.\n\n## Related Links\n\n- \u003chttp://openmp.org/\u003e\n- \u003chttp://openmp.llvm.org/\u003e\n- \u003chttp://libcxx.llvm.org/\u003e\n- \u003chttp://libcxxabi.llvm.org/\u003e\n- \u003chttp://stackoverflow.com/questions/7001424/opencl-problem-with-double-type\u003e\n- \u003chttp://stackoverflow.com/questions/4644814/are-objective-c-blocks-supported-by-compilers-on-linux\u003e\n- \u003chttp://stackoverflow.com/questions/13805059/dirname-in-c-is-the-manual-wrong\u003e\n- \u003chttp://stackoverflow.com/questions/7031126/switching-between-gcc-and-clang-llvm-using-cmake\u003e\n- \u003chttp://stackoverflow.com/questions/26791343/using-openmp-with-llvm-clang\u003e\n- \u003chttp://stackoverflow.com/questions/2998864/how-to-add-a-or-condition-in-ifdef\u003e\n- \u003chttp://stackoverflow.com/questions/5557164/causes-for-cl-invalid-work-group-size\u003e\n- \u003chttp://stackoverflow.com/questions/7996537/cl-invalid-work-group-size-error\u003e\n- \u003chttp://www.cmake.org/Wiki/CMake_Useful_Variables\u003e\n- \u003chttps://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html\u003e\n- \u003chttp://tersetalk.wordpress.com/2012/04/13/opencl-error-codes/\u003e\n- \u003chttps://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/scalarDataTypes.html\u003e\n- \u003chttps://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/reservedDataTypes.html\u003e\n- \u003chttps://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/cl_khr_fp64.html\u003e\n- \u003chttps://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clEnqueueNDRangeKernel.html\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefox%2Fmandelbrot-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthefox%2Fmandelbrot-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthefox%2Fmandelbrot-c/lists"}