{"id":13994609,"url":"https://github.com/inconvergent/differential-line","last_synced_at":"2025-07-22T20:30:39.224Z","repository":{"id":35337866,"uuid":"39600045","full_name":"inconvergent/differential-line","owner":"inconvergent","description":"a generative algorithm","archived":true,"fork":false,"pushed_at":"2018-05-23T10:55:28.000Z","size":7515,"stargazers_count":683,"open_issues_count":0,"forks_count":96,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-11-29T16:39:23.629Z","etag":null,"topics":["algorithm","animation","generative","generative-art","growth"],"latest_commit_sha":null,"homepage":"https://inconvergent.net/generative/differential-line/","language":"Python","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/inconvergent.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":"2015-07-23T23:44:31.000Z","updated_at":"2024-09-16T13:18:40.000Z","dependencies_parsed_at":"2022-07-11T04:00:26.139Z","dependency_job_id":null,"html_url":"https://github.com/inconvergent/differential-line","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/inconvergent/differential-line","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inconvergent%2Fdifferential-line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inconvergent%2Fdifferential-line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inconvergent%2Fdifferential-line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inconvergent%2Fdifferential-line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inconvergent","download_url":"https://codeload.github.com/inconvergent/differential-line/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inconvergent%2Fdifferential-line/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266567129,"owners_count":23949294,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["algorithm","animation","generative","generative-art","growth"],"created_at":"2024-08-09T14:02:58.994Z","updated_at":"2025-07-22T20:30:38.343Z","avatar_url":"https://github.com/inconvergent.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Differential Line\n=============\n\n![ani](/img/ani2.gif?raw=true \"animation\")\n\nThis algorithm simulates the way a number of biological things in nature grows.\nAmong other things it is made to mimic the growth of the human brain, as well\nas a great number of plants.\n\nSpecifically this code is a line-based implementation of behaviour very similar\nto Floraform by Nervous System:\nhttps://n-e-r-v-o-u-s.com/projects/sets/floraform/\nAnother relevant paper (which I discovered later) is this:\nhttp://www.dgp.toronto.edu/~karan/artexhibit/mazes.pdf\n\n![ani](/img/ani.gif?raw=true \"animation\")\n\n![img](/img/img.jpg?raw=true \"image\")\n\nIn brief; we start of with a number of connected nodes in a circle. Gradually\nwe introduce new nodes on the line—prioritizing segments where the curve bends\nmore sharply.  Over time the curve grows increasingly intricate, but it never\nself-intersects.\n\n![img](/img/img1.jpg?raw=true \"image\")\n\n![img](/img/img2.jpg?raw=true \"image\")\n\nIf we start with a different shape, and draw the outside position of the object\nfor each growth step, we can get an entirely different kind of system with an\ninteresting 3D illusion.\n\n![img](/img/img3.jpg?raw=true \"image\")\n\n## Prerequisites\n\nIn order for this code to run you must first download and install these two\nrepositories:\n\n*    `iutils`: http://github.com/inconvergent/iutils\n*    `zonemap`: https://github.com/inconvergent/zonemap\n*    `fn`: https://github.com/inconvergent/fn (used to generate\n     filenames, you can remove this dependency in the main files)\n\n## Other Dependencies\n\nThe code also depends on:\n\n*    `gi` (replaces pyGTK)\n*    `numpy`\n*    `cython`\n*    `python-cairo` (do not install with pip, this generally does not work)\n\n## Running it on Linux (Ubuntu)\n\nTo install the libraries locally, run `./install`. I have only tested this code\nin Ubuntu 14.04 LTS, but my guess is that it should work on most other\nplatforms platforms as well.  However i know that the scripted install in\n`./install` will not work in Windows\n\n## Running it on Windows?\n\nThe code will probably work just fine under Windows, but I'm not sure how to\ninstall it. (Let me know if you get it working!)\n\n## Why all the main files?\n\nIf you just want to try this out you should have a look at `main_ani.py`. It is\npretty safe to ignore all the others main files. (They implement different\nbehaviour, and some of them are very experimental.)\n\n## Similar code\n\nIf you find this alorithm insteresting you might also want to check out:\nhttps://github.com/inconvergent/differential-mesh.\n\nRecently I also implemented a version of this algorithm using CUDA:\n\nhttps://github.com/inconvergent/differential-line-cuda\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finconvergent%2Fdifferential-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finconvergent%2Fdifferential-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finconvergent%2Fdifferential-line/lists"}