{"id":17339998,"url":"https://github.com/resetius/lsystem","last_synced_at":"2026-03-19T00:54:16.544Z","repository":{"id":150237651,"uuid":"341284681","full_name":"resetius/lsystem","owner":"resetius","description":"L-System Fractal Generator","archived":false,"fork":false,"pushed_at":"2023-10-03T22:56:25.000Z","size":253,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T13:25:34.600Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"LiveScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/resetius.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":"2021-02-22T17:41:31.000Z","updated_at":"2023-10-28T10:33:17.000Z","dependencies_parsed_at":"2023-10-04T03:30:02.148Z","dependency_job_id":null,"html_url":"https://github.com/resetius/lsystem","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/resetius%2Flsystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resetius%2Flsystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resetius%2Flsystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resetius%2Flsystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/resetius","download_url":"https://codeload.github.com/resetius/lsystem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245807826,"owners_count":20675620,"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":[],"created_at":"2024-10-15T15:43:42.509Z","updated_at":"2026-01-07T04:36:59.983Z","avatar_url":"https://github.com/resetius.png","language":"LiveScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lsystem\n[L-System Fractal Generator](https://en.wikipedia.org/wiki/L-system)\n\nThis program was inspired by [FractInt](http://fractint.oblivion.cz) pictures and written by me in 2008. Current version (2021) was rewritten in C language and stripped of old/unused/broken code.\n\n# build\n```\n$ cmake ${source-dir}\n$ make\n```   \n# run\n```\n$ lsystem -f ${source-dir}/fractals/snoppy.ls\n  ....\nbuilding Snow.Flake.2\n  using order 4\n  lsystem done\n  turtle done\n  normilize done\n  saving done\nbuilding Snow.Flake.3\n  using order 5\n  lsystem done\n  turtle done\n  normilize done\n  saving done\nbuilding Snow.Flake.4\n  using order 12\n  lsystem done\n  turtle done\n  normilize done\n  saving done\nbuilding Twelve.Stones\n  using order 27\n  lsystem done\n  turtle done\n  normilize done\n  saving done\n```\n# syntax\n\n```\nfractal_name { fractal_description }\n```\nFractal with name 'fractal_name' will be saved to 'fractal_name.png'.\n\nFractal description parameters:\n\n | name     | description                                   |\n | ------------- | --------------------------------------------- |\n | alpha         | initial angle                                 |\n | theta         | angle increment in radians                    |\n | angle         | angle increment in degree                     |\n | axiom         | sets axiom                                    |\n | + or -        | increment or decrement angle on theta radians |\n | !             | swaps + and -                                 |\n | [ and ]       | branch                                        |\n | F or D        | draw forward                                  |\n | G or M.       | skip forward                                  |\n | Cnumber       | sets current color to number                  |\n | \u003enumber       | increases color by number                     |\n | \u003cnumber       | decreases color by number                     |\n | |             | increases angle by 180 degree                 |\n | \\number       | increases angle by number degree              |\n | /number       | decreases angle by number degree              |\n | @number       | multiplies step by number                     |\n | @qnumber      | multiplies step by square root of number      |\n | @lnumber      | divides step by number                        |\n | @lqnumber     | divides step by square root of number         |\n | @qlnumber     | divides step by square root of number         |\n | ;             | comment                                       |\n | ;order number | sets order of current fractal to number       |\n \n# Fractal description examples\n```\nKoch2 { ; Adrian Mariano\n; from The Fractal Geometry of Nature by Mandelbrot\n  Angle 12\n  Axiom F---F---F---F\n  F=-F+++F---F+\n  }\n\nKoch3 { ; Adrian Mariano\n; from The Fractal Geometry of Nature by Mandelbrot\n  Angle 4\n  Axiom F-F-F-F\n  F=F-F+F+FF-F-F+F\n  }\n```\n\n# Pictures examples\nThis examples were generated from rule-files taken from [FractInt](http://fractint.oblivion.cz).\n\n![img/200x200/No.Touch.Double.png](https://github.com/resetius/lsystem/blob/master/img/200x200/No.Touch.Double.png?raw=true)\n![img/200x200/Mandelbrot.Set.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Mandelbrot.Set.png?raw=true)\n![img/200x200/Penta.Spread.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Penta.Spread.png?raw=true)\n![img/200x200/No.Touch.Inside.png](https://github.com/resetius/lsystem/blob/master/img/200x200/No.Touch.Inside.png?raw=true)\n![img/200x200/Sierp.Square.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Sierp.Square.png?raw=true)\n![img/200x200/Penta.Thesis.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Penta.Thesis.png?raw=true)\n![img/200x200/Grown.Lawn.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Grown.Lawn.png?raw=true)\n![img/200x200/Koch.Fireworks.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Koch.Fireworks.png?raw=true)\n![img/200x200/Koch.Levitation.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Koch.Levitation.png?raw=true)\n![img/200x200/Sign..png](https://github.com/resetius/lsystem/blob/master/img/200x200/Sign..png?raw=true)\n![img/200x200/Grown.Feather.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Grown.Feather.png?raw=true)\n![img/200x200/Grown.Grass.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Grown.Grass.png?raw=true)\n![img/200x200/Grown.Maple.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Grown.Maple.png?raw=true)\n![img/200x200/Fractal.Rose.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Fractal.Rose.png?raw=true)\n![img/200x200/R.I.P.Around.png](https://github.com/resetius/lsystem/blob/master/img/200x200/R.I.P.Around.png?raw=true)\n![img/200x200/Twelve.Stones.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Twelve.Stones.png?raw=true)\n![img/200x200/Shaded.Paper.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Shaded.Paper.png?raw=true)\n![img/200x200/Gothic.Outline.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Gothic.Outline.png?raw=true)\n![img/200x200/Sea.Horse.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Sea.Horse.png?raw=true)\n![img/200x200/Citric.Circles.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Citric.Circles.png?raw=true)\n![img/200x200/No.Touch.Basic.png](https://github.com/resetius/lsystem/blob/master/img/200x200/No.Touch.Basic.png?raw=true)\n![img/200x200/Sierp.Trigon.3.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Sierp.Trigon.3.png?raw=true)\n![img/200x200/Koch.StarRing.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Koch.StarRing.png?raw=true)\n![img/200x200/Sierp.Trigon.2.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Sierp.Trigon.2.png?raw=true)\n![img/200x200/No.Touch.Insight.png](https://github.com/resetius/lsystem/blob/master/img/200x200/No.Touch.Insight.png?raw=true)\n![img/200x200/Snow.Flake.1.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Snow.Flake.1.png?raw=true)\n![img/200x200/Snow.Flake.3.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Snow.Flake.3.png?raw=true)\n![img/200x200/No.Touch.Full.png](https://github.com/resetius/lsystem/blob/master/img/200x200/No.Touch.Full.png?raw=true)\n![img/200x200/Grown.FernStar.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Grown.FernStar.png?raw=true)\n![img/200x200/Sierp.Trigon.1.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Sierp.Trigon.1.png?raw=true)\n![img/200x200/Snow.Flake.2.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Snow.Flake.2.png?raw=true)\n![img/200x200/Grown.Fern.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Grown.Fern.png?raw=true)\n![img/200x200/Astral.2.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Astral.2.png?raw=true)\n![img/200x200/Astral.1.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Astral.1.png?raw=true)\n![img/200x200/Snow.Flake.4.png](https://github.com/resetius/lsystem/blob/master/img/200x200/Snow.Flake.4.png?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresetius%2Flsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fresetius%2Flsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresetius%2Flsystem/lists"}