{"id":15481740,"url":"https://github.com/demonstrandum/fractal","last_synced_at":"2025-04-22T16:41:35.088Z","repository":{"id":56847661,"uuid":"94250361","full_name":"Demonstrandum/Fractal","owner":"Demonstrandum","description":"Draws PNG images of complex plane fractals, in Ruby.","archived":false,"fork":false,"pushed_at":"2018-07-17T17:03:24.000Z","size":36,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T17:16:49.881Z","etag":null,"topics":["complex-numbers","fractal","image","julia","mandelbrot","png","ruby","sets"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Demonstrandum.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}},"created_at":"2017-06-13T19:36:16.000Z","updated_at":"2025-03-26T09:44:47.000Z","dependencies_parsed_at":"2022-09-12T11:50:38.280Z","dependency_job_id":null,"html_url":"https://github.com/Demonstrandum/Fractal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demonstrandum%2FFractal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demonstrandum%2FFractal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demonstrandum%2FFractal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demonstrandum%2FFractal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Demonstrandum","download_url":"https://codeload.github.com/Demonstrandum/Fractal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250278858,"owners_count":21404275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["complex-numbers","fractal","image","julia","mandelbrot","png","ruby","sets"],"created_at":"2024-10-02T05:05:55.301Z","updated_at":"2025-04-22T16:41:35.066Z","avatar_url":"https://github.com/Demonstrandum.png","language":"Ruby","readme":"# Fractal\nDraws fractals in form of PNG images, using Ruby.\n\n\n![mandelbrot-fractal](https://user-images.githubusercontent.com/26842759/27105899-2586bd88-5089-11e7-9a01-3e3fdb419a38.png)\nGenerated with `fractal -w=2000 -h=1100 --scale=2.92 --def=100 mandelbrot --color=mono`\n\n\n## Installation\nRubyGems:\n```shell\ngem install fractal\n```\nSource:\n```shell\ngit clone https://github.com/Demonstrandum/Fractal.git \u0026\u0026 cd ./Fractal/\ngem build fractal.gemspec\ngem install fractal-*.gem\n```\n\n## Usage\nThe current command-line arguments possible are:\n  - `-w=`, the pixel width of the output image. (*Defaults to 300*), e.g. `-w=500`\n  - `-h=`, the pixel height of the output image. (*Defaults to 300*), e.g. `-h=240`\n  - `--color=`, (*Defaults to mono*), allows you to draw the image in colour or monochromatically, e.g. `--color=mono` or `--color=multi` which is the same as `--color=rainbow`\n  - `-o=`, (*optional*) is the location in which to save your image, the `-o=` part is not required if you just write the file location with a `.png` at the end.\n  - `--def=`, (*optional*), the 'definition' of the image, the amount of calculations performed or iterations to the formula. e.g. `--def=100`\n  - `--scale=`, (*optional*), the *zoom* level of the image, a higher value corresponds to a taller *imaginary* number line thus a smaller fractal is seen. e.g. `--scale=2.25`\n  - `--offset=x,y` (*optional*), the offset will make you able\nto position yourself where you like on the plan.\n(offsetting where the centre is, before (0,0) was\nthe centre of the image, but now your offset is the centre).\nMake sure you give an x and y value as numerics,\nints and floats work both and don't leave any space between the comma).\n  - `--complex=` (*only needed for the Julia set*) this sets a complex coordinate for the Julia set, in the form of `a±bi` (a and b real numbers and i is the square root of -1 which can take on all values in the complex plane), e.g. `-0.8+0.4i`\n  - **Last but not least**, (*required*), the type of fractal drawn. This argument is composed of just the fractal's name, put at any position in your list of arguments. e.g. `mandelbrot` or `julia` (only ones currently available)\n\n\nExample commands are:\n\n### Mandelbrot\nFor the Mandelbrot set:\n```shell\nfractal -w=400 -h=320 --color=multi mandelbrot --scale=2 --def=200\n```\n\n#### Offset \u0026 Zoom\nUsing our offset argument, we can get to some very pretty places...\n\n```\nfractal mandelbrot --offset=-0.7463,0.1102 --scale=0.005 --def=1000 -o=close_1.png\n```\nwill generate:\n\n![closeup-1](https://user-images.githubusercontent.com/26842759/42823116-a7edc926-89d4-11e8-9000-52b463148a62.png)\n\n\u003cbr /\u003e\n\n```\nfractal mandelbrot --offset=-0.7453,0.1127 --scale=6.5e-4 --def=1000 -o=close_2.png\n```\nwill generate:\n\n![closeup-2](https://user-images.githubusercontent.com/26842759/42823162-c69f8ecc-89d4-11e8-8c96-41e07ea9c067.png)\n\nCheck out: [cuug.ab.ca/dewara/mandelbrot/](http://www.cuug.ab.ca/dewara/mandelbrot/Mandelbrowser.html)\nfor more prime locations (This is where the coordinates for the two above come from).\n\n### Julia\nFor the Julia set, which requires the complex coordinate argument:\n```shell\nfractal julia -w=1000 -h=1000 --color=multi --complex=-0.8+0.156i --def=100 --scale=1.5\n```\nwhich generated:\n![julia-fractal](https://user-images.githubusercontent.com/26842759/27133600-a105798c-510a-11e7-95fc-00f6a4977ea6.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemonstrandum%2Ffractal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemonstrandum%2Ffractal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemonstrandum%2Ffractal/lists"}