{"id":28373391,"url":"https://github.com/dkruchinin/lsystem","last_synced_at":"2025-09-10T13:38:59.567Z","repository":{"id":15961429,"uuid":"18704061","full_name":"dkruchinin/lsystem","owner":"dkruchinin","description":"L-system fractal generator","archived":false,"fork":false,"pushed_at":"2014-05-30T15:18:54.000Z","size":148,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T10:36:33.621Z","etag":null,"topics":["lsystem","python","turtle"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkruchinin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-12T12:59:15.000Z","updated_at":"2023-03-05T03:34:49.000Z","dependencies_parsed_at":"2022-09-24T06:02:16.995Z","dependency_job_id":null,"html_url":"https://github.com/dkruchinin/lsystem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dkruchinin/lsystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkruchinin%2Flsystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkruchinin%2Flsystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkruchinin%2Flsystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkruchinin%2Flsystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkruchinin","download_url":"https://codeload.github.com/dkruchinin/lsystem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkruchinin%2Flsystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274471003,"owners_count":25291611,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"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":["lsystem","python","turtle"],"created_at":"2025-05-29T19:30:56.945Z","updated_at":"2025-09-10T13:38:59.505Z","avatar_url":"https://github.com/dkruchinin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"lsystem\n=======\n\nSimple [L-system](http://en.wikipedia.org/wiki/Lsystem) based fractal generator written just for fun.\n\nUsage\n=======\n\n\n    % ./lsystem.py\n    USAGE: ./lsystem.py -c \u003cconfig.json\u003e -g \u003cWIDTH\u003ex\u003cHEIGHT\u003e [-h]\n\n* -g: controls geometry of a window where fractal will be drawn\n* -c: specifies a file in JSON format with a description of fractal according to the L-system rules\n\nL-system file syntax\n-------------------\n\n```javascript\n{\n\t\"iters\": integer, // number of iterations\n\t\"angle\": double, // angle (in degrees from 0 to 360)\n\t\"axiom\": string,\n\t\"rules\": { // rules of inference\n\t\tstring: string, // rule 1\n\t\t...,\n\t\tstring: string // rule N\n\t}\n}\n```\n\nAlphabet that can be used in axioms and rules is pretty simple: *FGf+-[]*. Each letter is responsible for particular\nturtle (see [turtle graphics](http://en.wikipedia.org/wiki/Turtle_graphics) for more info) command, namely:\n\n* *F* and *G*: draw forward\n* *f*: move cursor forward without drawing anything\n* *+*: turn right\n* *-*: turn left\n* *[*: push current state of the cursor into the stack\n* *]*: pop state of the cursor from the stack\n\nSome examples of valid L-system files:\n--------------------------------------\n\n* **Dragon curve**\n\n```javascript\n{\n\t\"iters\": 10,\n\t\"angle\": 90,\n\t\"axiom\": \"F\",\n\t\"rules\": {\n\t\t\"F\": \"F+G+\",\n\t\t\"G\": \"-F-G\"\n\t}\n}\n```\n\n* **Fractal plant**\n\n```javascript\n{\n\t\"iters\": 4,\n\t\"angle\": 22.5,\n\t\"axiom\": \"F\",\n\t\"rules\": {\n\t\t\"F\": \"FF-[-F+F+F]+[+F-F-F]\"\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkruchinin%2Flsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkruchinin%2Flsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkruchinin%2Flsystem/lists"}