{"id":26283435,"url":"https://github.com/fecapark/inside-slushy","last_synced_at":"2025-03-14T17:18:45.468Z","repository":{"id":200883485,"uuid":"706451856","full_name":"fecapark/inside-slushy","owner":"fecapark","description":"Interactive slushy machine.","archived":false,"fork":false,"pushed_at":"2023-10-23T09:28:21.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-18T06:02:48.442Z","etag":null,"topics":["canvas","canvas2d","interaction","interaction-design","interaction-design-project","interactions","interactions-insights"],"latest_commit_sha":null,"homepage":"https://fecapark.github.io/inside-slushy/","language":"JavaScript","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/fecapark.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}},"created_at":"2023-10-18T01:32:59.000Z","updated_at":"2023-10-18T03:29:34.000Z","dependencies_parsed_at":"2023-10-23T09:47:05.559Z","dependency_job_id":null,"html_url":"https://github.com/fecapark/inside-slushy","commit_stats":null,"previous_names":["fecapark/inside-slushy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fecapark%2Finside-slushy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fecapark%2Finside-slushy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fecapark%2Finside-slushy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fecapark%2Finside-slushy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fecapark","download_url":"https://codeload.github.com/fecapark/inside-slushy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243615572,"owners_count":20319733,"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":["canvas","canvas2d","interaction","interaction-design","interaction-design-project","interactions","interactions-insights"],"created_at":"2025-03-14T17:18:44.790Z","updated_at":"2025-03-14T17:18:45.458Z","avatar_url":"https://github.com/fecapark.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inside Slushy\n\nby fecapark\n\nInteractive project, inspired by slushy machine.\n\n## Demo\n\n[Project Link](https://fecapark.github.io/inside-slushy/)\n\n\u003cimg src=\"https://github.com/fecapark/inside-slushy/assets/101973955/8f2e1f70-d933-48b2-9970-a5e1a41e357f\" width=\"500\" /\u003e\n\n## Interactive behaviors\n\n- Hold and spin the spinner.\n- Create slushy balls as touch background.\n\n## Project behind\n\n### Physics engine\n\nNo third party physics engine.\n\nImplements:\n\n- Acceleration (Movements).\n- Elastic collision between circles.\n  - Calculated by replacing the radius by mass.\n- Solved multiple circles collision problem ([Like this](https://gamedev.stackexchange.com/questions/104042/2d-multiple-circle-collision-response))\n  - By moving it back to the way it came before the collision. ([Code](https://github.com/fecapark/inside-slushy/blob/f94fd9d5e9d52c3be5bb57d01a375eab572e0233/src/managers/BallManager.js#L194C11-L194C28))\n- Normal force between rotated spinner and moving balls.\n\n### Guides\n\n\u003cimg src=\"https://github.com/fecapark/inside-slushy/assets/101973955/3c16c0f9-0919-42b4-9795-821ef329c2ae\" width=\"500\" /\u003e\n\nSpotlight guide for UX.\n\nUsing HTML5 Canvas masking.\n\n- Apply `Context2d.globalCompositeOperation = \"destination-out\";`, you can get same effect.\n- To get more information, refer to [my lab project](https://github.com/fecapark/masking-animation)'s code.\n\n### Compatibility\n\n- Compatibility for all devices and browsers has different fps.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffecapark%2Finside-slushy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffecapark%2Finside-slushy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffecapark%2Finside-slushy/lists"}