{"id":18860261,"url":"https://github.com/thajiyev/fractal","last_synced_at":"2026-02-08T22:30:15.470Z","repository":{"id":161871250,"uuid":"587042107","full_name":"THajiyev/fractal","owner":"THajiyev","description":"Sierpiński triangle formed one point at a time","archived":false,"fork":false,"pushed_at":"2023-01-13T07:27:35.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T20:20:13.239Z","etag":null,"topics":["pascal-triangle","pascal-triangle-generator"],"latest_commit_sha":null,"homepage":"https://thajiyev.github.io/fractal/","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/THajiyev.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-01-09T20:32:42.000Z","updated_at":"2023-01-30T01:52:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"415430e6-04cf-4f0f-a1b7-37996bb2196f","html_url":"https://github.com/THajiyev/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/THajiyev%2Ffractal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THajiyev%2Ffractal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THajiyev%2Ffractal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THajiyev%2Ffractal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/THajiyev","download_url":"https://codeload.github.com/THajiyev/fractal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239800483,"owners_count":19699127,"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":["pascal-triangle","pascal-triangle-generator"],"created_at":"2024-11-08T04:23:15.424Z","updated_at":"2026-02-08T22:30:15.421Z","avatar_url":"https://github.com/THajiyev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sierpinski Triangle Simulator\n\n## How does it work?\n\nDuring each iteration, we plot the midpoint between the previous point(starting with the apex) and a randomly chosen vertex. \n\n## Example\n\nThis is a simplified example of this process with a non-equilateral triangle in the first quadrant.\n\nLet's say it has a width and a height of 16 units.\n\n```mermaid\n\ngraph TB\n\nA[Vertices] --\u003e B[(0,0)]\n\nA[Vertices] --\u003e C[(16,0)]\n\nA[Vertices] --\u003e D[(8, 16)]\n\nE[Apex] --\u003e D[(8, 16)]\n\n```\n\nThe first point is the apex.\n\nLast Point | Chosen vertex | Mid-point\n--- | --- | ---\n(8,16) | (0,0)  | (4,8) \n(4,8)  | (16,0) | (10,4) \n(10,4) | (8,16) | (9,10) \n\nAs we add more points using this process, a Sierpinski Triangle forms.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthajiyev%2Ffractal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthajiyev%2Ffractal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthajiyev%2Ffractal/lists"}