{"id":24775757,"url":"https://github.com/ubavic/chaos-game","last_synced_at":"2025-03-23T23:48:58.190Z","repository":{"id":265352120,"uuid":"615532700","full_name":"ubavic/chaos-game","owner":"ubavic","description":"Interactive demonstration of the Chaos game","archived":false,"fork":false,"pushed_at":"2023-03-26T17:33:12.000Z","size":125,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T21:46:29.640Z","etag":null,"topics":["complex-dynamics","fractals","iterated-function-system"],"latest_commit_sha":null,"homepage":"https://ubavic.rs/chaos_game","language":"JavaScript","has_issues":true,"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/ubavic.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":"2023-03-17T23:22:22.000Z","updated_at":"2023-06-06T14:47:09.000Z","dependencies_parsed_at":"2024-11-29T02:50:11.473Z","dependency_job_id":"60d19c38-08cf-431d-948c-54b1f7d24587","html_url":"https://github.com/ubavic/chaos-game","commit_stats":null,"previous_names":["ubavic/chaos-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubavic%2Fchaos-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubavic%2Fchaos-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubavic%2Fchaos-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubavic%2Fchaos-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubavic","download_url":"https://codeload.github.com/ubavic/chaos-game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245186930,"owners_count":20574554,"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-dynamics","fractals","iterated-function-system"],"created_at":"2025-01-29T06:55:31.790Z","updated_at":"2025-03-23T23:48:58.147Z","avatar_url":"https://github.com/ubavic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chaos game\n\nInteractive demonstration of the [Chaos game](https://en.wikipedia.org/wiki/Chaos_game), written in pure JavaScript. This program renders images to a canvas element, while commands are implemented via HTML form elements and SVG.\n\nIn this demonstration, all vertices and parameters are treated as complex numbers.\n\nThe orbit of the point $P_0$ is generated iteratively by the formula\n$$P_{i+1} = \\lambda (P_i + V)$$\nwhere $V$ is a randomly chosen vertex of the polygon, and $\\lambda$ is fixed parameter (in  the \"original\" Chaos game, $\\lambda = \\frac{1}{2}$).\n\n![Chaos game](./chaos.png)\n\n## Hacking and Contributing \n\nEven if the code contains a few hundred lines, the main drawing logic is concentrated in a few lines of the `draw` function.\nAll other functions are used for UI.\n\nSome ideas for future development\n + Better control of 'clearing' between redraws\n + More control of the number of iterations per frame. Automatic selection based on the time required to render a frame\n + Advanced rules: disallowing consequent selection of same vertex, forbidden domains, etc...\n + Switching to WebGL renderer/WASM core if that brings more performance\n\nContributions and new ideas are more than welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubavic%2Fchaos-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubavic%2Fchaos-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubavic%2Fchaos-game/lists"}