{"id":28325187,"url":"https://github.com/aminehabchi/chaikin","last_synced_at":"2025-07-26T11:18:23.449Z","repository":{"id":294749276,"uuid":"986944030","full_name":"aminehabchi/CHAIKIN","owner":"aminehabchi","description":" three interactive graphical demonstrations built in Rust using the minifb window library.","archived":false,"fork":false,"pushed_at":"2025-05-21T21:09:53.000Z","size":85158,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T12:43:59.271Z","etag":null,"topics":["chaikin-algorithm","graphical-interface","minifb","radar","rust","snack"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/aminehabchi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-20T10:52:40.000Z","updated_at":"2025-05-22T08:44:30.000Z","dependencies_parsed_at":"2025-05-21T22:33:15.794Z","dependency_job_id":null,"html_url":"https://github.com/aminehabchi/CHAIKIN","commit_stats":null,"previous_names":["aminehabchi/chaikin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aminehabchi/CHAIKIN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminehabchi%2FCHAIKIN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminehabchi%2FCHAIKIN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminehabchi%2FCHAIKIN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminehabchi%2FCHAIKIN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aminehabchi","download_url":"https://codeload.github.com/aminehabchi/CHAIKIN/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminehabchi%2FCHAIKIN/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267156151,"owners_count":24044415,"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-26T02:00:08.937Z","response_time":62,"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":["chaikin-algorithm","graphical-interface","minifb","radar","rust","snack"],"created_at":"2025-05-25T20:12:12.714Z","updated_at":"2025-07-26T11:18:23.397Z","avatar_url":"https://github.com/aminehabchi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Graphics Demonstrations with `minifb`\n\nThis repository showcases three interactive graphical demonstrations built in Rust using the [`minifb`](https://github.com/emoon/rust_minifb) window library.\n\n## Included Demos\n\n### 1. Chaikin's Curve Algorithm Animation\nAn interactive and animated implementation of Chaikin’s curve smoothing algorithm.\n\n### 2. Radar Animation\nA classic radar-style animation featuring a sweeping line and disappearing blips.\n\n### 3. Snake Cursor Follower\nA smooth snake-like animation that follows the user's cursor in real-time.\n\n---\n\n## Demonstrations\n\n### Chaikin's Curve Algorithm\n![Chaikin's Curve Animation](./chaikin.mp4)\n\nChaikin's algorithm iteratively smooths a polyline by subdividing line segments, producing a curve-like effect.\n\n**Features:**\n- Place control points with **left mouse button**\n- Start animation with **Enter**\n- Runs through **7 refinement steps**\n- Clear screen with **C**\n- **Drag points** to move them\n- Exit with **Esc**\n\n---\n\n### Radar Animation\n![Radar Animation](./radar.mp4)\n\nA stylized radar simulation featuring:\n\n**Features:**\n- Rotating sweep line\n- Random blips that fade over time\n- Concentric range rings\n- Exit with **Esc**\n\n---\n\n### Snake Cursor Follower\n![Snake Cursor Follower](./snack.mp4)\n\nA fun snake-like follower that reacts to mouse movement.\n\n**Features:**\n- Smooth motion with physics-inspired spring behavior\n- Segments follow each other with delay\n- Exit with **Esc**\n\n---\n\n## Requirements\n\n- Rust **1.50+**\n- `cargo` package manager\n\n---\n\n## Installation\n\nClone this repository:\n\n```bash\ngit clone https://github.com/aminehabchi/CHAIKIN.git\ncd CHAIKIN\n```\n\n\n## Implementation Details\n\n### Chaikin's Algorithm\nSteps:\n1. Users define a polyline by placing control points.\n2. Each iteration replaces every segment AB with two points:\n   - One at **¼** of the way from A to B\n   - One at **¾** of the way from A to B\n3. This is repeated for **7 iterations** to smooth the shape.\n\n### Radar Animation\n- Uses trigonometric rotation to animate a **sweeping line**\n- **Blips** appear randomly and fade\n- **Range rings** offer visual scale\n\n### Snake Cursor Follower\n- Uses **spring physics** for smooth trailing\n- Segments track the one before it\n- Real-time interaction with **mouse position**\n\n---\n\n## Contributing\n\nContributions are welcome! Please feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminehabchi%2Fchaikin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faminehabchi%2Fchaikin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminehabchi%2Fchaikin/lists"}