{"id":16287516,"url":"https://github.com/alordash/newton-fractal","last_synced_at":"2025-07-22T19:33:55.372Z","repository":{"id":42026613,"uuid":"451547126","full_name":"alordash/newton-fractal","owner":"alordash","description":"Drawing Newton's fractal using pure js, rust-wasm, SIMDs, threads and GPU","archived":false,"fork":false,"pushed_at":"2022-05-24T15:44:03.000Z","size":854,"stargazers_count":105,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T22:03:02.048Z","etag":null,"topics":["glsl","newton-fractal","newton-fractals","newton-method","newtons-fractal","rust","simd","threads","wasm","web-worker","webgl","webgl2"],"latest_commit_sha":null,"homepage":"https://alordash.github.io/newton-fractal/www/index.html","language":"TypeScript","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/alordash.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":"2022-01-24T16:40:43.000Z","updated_at":"2024-11-22T01:04:02.000Z","dependencies_parsed_at":"2022-08-12T02:41:04.961Z","dependency_job_id":null,"html_url":"https://github.com/alordash/newton-fractal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alordash/newton-fractal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alordash%2Fnewton-fractal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alordash%2Fnewton-fractal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alordash%2Fnewton-fractal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alordash%2Fnewton-fractal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alordash","download_url":"https://codeload.github.com/alordash/newton-fractal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alordash%2Fnewton-fractal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266561321,"owners_count":23948625,"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":["glsl","newton-fractal","newton-fractals","newton-method","newtons-fractal","rust","simd","threads","wasm","web-worker","webgl","webgl2"],"created_at":"2024-10-10T19:45:20.235Z","updated_at":"2025-07-22T19:33:55.345Z","avatar_url":"https://github.com/alordash.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Newton's fractal\n\nRuntime [Newton's fractal](https://en.wikipedia.org/wiki/Newton_fractal) renderer.\n\n### [\u003e\u003eClick\u003c\u003c](https://alordash.github.io/newton-fractal/www/index.html) to open in your browser\n\nInspired by [3blue1brown](https://www.3blue1brown.com/)'s [video about Newton's fractal](https://youtu.be/-RdOwhmqP5s).\n\n![Demo preview](./demo/11-250.png)\n\n## Build\n\n1. Rust-wasm:\n   `wasm-pack build --target web`\n2. TypeScript:\n   `tsc`\n\n## Drawing techniques\n\n### \u003cdetails\u003e \u003csummary\u003e1. Javascript\u003c/summary\u003e [fractal_calculation.ts](https://github.com/alordash/newton-fractal/blob/main/scripts/math/fractal_calculation.ts) and [geometry.ts](https://github.com/alordash/newton-fractal/blob/main/scripts/math/geometry.ts) \u003c/details\u003e\n\n### \u003cdetails\u003e \u003csummary\u003e2. **Rust-WASM**: scalar\u003c/summary\u003e [fractal_calculation.rs](https://github.com/alordash/newton-fractal/blob/main/src/fractal_calculation.rs) and [geometry.rs](https://github.com/alordash/newton-fractal/blob/main/src/geometry.rs) \u003c/details\u003e\n\n### \u003cdetails\u003e \u003csummary\u003e3. **Rust-WASM**: [SIMD](https://en.wikipedia.org/wiki/Single_instruction,_multiple_data) commands\u003c/summary\u003e [fractal_calculation.rs](https://github.com/alordash/newton-fractal/blob/main/src/fractal_calculation.rs) and [simd_math.rs](https://github.com/alordash/newton-fractal/blob/main/src/simd_math.rs) (includes comments) \u003c/details\u003e\n\n### \u003cdetails\u003e \u003csummary\u003e4. **GPU glsl**\u003c/summary\u003esources: [webgl2_drawing.ts](https://github.com/alordash/newton-fractal/blob/main/scripts/webgl/webgl2_drawing.ts) and [gl_manager.ts](https://github.com/alordash/newton-fractal/blob/main/scripts/webgl/gl_manager.ts)\u003cbr/\u003eshaders: [vertex.vert](https://github.com/alordash/newton-fractal/blob/main/webgl/vertex.vert) and [fragment.frag](https://github.com/alordash/newton-fractal/blob/main/webgl/fragment.frag) \u003c/details\u003e\n\n### \u003cdetails\u003e \u003csummary\u003e5. **Multithreading** for 1-3 techniques\u003c/summary\u003e[drawing_manager.ts](https://github.com/alordash/newton-fractal/blob/main/scripts/drawing/drawing_manager.ts) and [drawing_worker.ts](https://github.com/alordash/newton-fractal/blob/main/scripts/drawing/drawing_worker.ts) \u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falordash%2Fnewton-fractal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falordash%2Fnewton-fractal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falordash%2Fnewton-fractal/lists"}