{"id":31965572,"url":"https://github.com/jingshing/fluid-simulator-online","last_synced_at":"2026-02-18T16:02:40.241Z","repository":{"id":313357771,"uuid":"1051099235","full_name":"JingShing/Fluid-Simulator-Online","owner":"JingShing","description":"an online fluid simulator tool.","archived":false,"fork":false,"pushed_at":"2025-09-05T14:22:02.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-24T02:41:42.144Z","etag":null,"topics":["fluid-simulation"],"latest_commit_sha":null,"homepage":"https://jingshing.com/fluidsim/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JingShing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":"JingShing","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-09-05T12:48:20.000Z","updated_at":"2025-09-05T14:21:56.000Z","dependencies_parsed_at":"2025-09-05T15:40:41.177Z","dependency_job_id":null,"html_url":"https://github.com/JingShing/Fluid-Simulator-Online","commit_stats":null,"previous_names":["jingshing/fluid-simulator-online"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JingShing/Fluid-Simulator-Online","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FFluid-Simulator-Online","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FFluid-Simulator-Online/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FFluid-Simulator-Online/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FFluid-Simulator-Online/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JingShing","download_url":"https://codeload.github.com/JingShing/Fluid-Simulator-Online/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FFluid-Simulator-Online/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29585441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fluid-simulation"],"created_at":"2025-10-14T17:55:09.409Z","updated_at":"2026-02-18T16:02:40.223Z","avatar_url":"https://github.com/JingShing.png","language":"HTML","funding_links":["https://patreon.com/JingShing"],"categories":[],"sub_categories":[],"readme":"English | [繁體中文](README_TCH.md)\r\n\r\n# Fluid Gravity Simulator Web\r\n\r\n## Online Preview\r\n\r\n* [fluid Simulator | JingShing blog](https://jingshing.com/fluidsim/)\r\n* [Github page](https://jingshing.github.io/Fluid-Simulator-Online/)\r\n\r\n## How to Use\r\n\r\n- Download `web-fluidsim.html` and open it directly.\r\n\r\n## Controls\r\n\r\n**PC**\r\n\r\n- Mouse drag → the drag direction becomes the “gravity direction”\r\n- Arrow keys `↑ ↓ ← →` → adjust gravity\r\n- “Reset Particles” / “Zero Gravity” buttons → quick scene control\r\n\r\n**Mobile**\r\n\r\n- Tap “Enable Sensors” to grant permission (may not be required depending on platform)\r\n- “Re-calibrate” to treat the current device posture as 0\r\n- You can **invert X/Y** axes in settings\r\n\r\n## Settings\r\n\r\n- **Particle count / radius**: control quantity and size\r\n- **Collision iterations / restitution**: more iterations → more solid; higher restitution → bouncier\r\n- **Grid size**: grid render density (also affects the “blocky” fluid look)\r\n- **Gravity multiplier / damping**: scene gravity strength and velocity decay\r\n- **One-per-cell (experimental)**: prevent multiple particles from piling in the same cell (stricter, more expensive)\r\n- **Particle color**: pick via color input; foam/rim colors are auto-derived\r\n- **Render mode**: toggle between Grid / Particles\r\n- **Language**: Traditional Chinese / English\r\n- **Sidebar**: can be collapsed; use the top-left button to reopen\r\n\r\n## Customize Defaults\r\n\r\n**1) Change HTML input defaults:**\r\n\r\n```html\r\n\u003cinput id=\"nRange\"    value=\"700\" /\u003e\r\n\u003cinput id=\"rRange\"    value=\"4\"   /\u003e\r\n\u003cinput id=\"iterRange\" value=\"3\"   /\u003e\r\n\u003cinput id=\"restRange\" value=\"0.50\"/\u003e\r\n\u003cinput id=\"gridRange\" value=\"56\"  /\u003e\r\n\u003cinput id=\"gRange\"    value=\"1.0\" /\u003e\r\n\u003cinput id=\"dRange\"    value=\"0.995\"/\u003e\r\n\u003cinput id=\"colorPicker\" type=\"color\" value=\"#0078ff\"/\u003e\r\n\u003cselect id=\"langSel\"\u003e…\u003c/select\u003e\r\n```\r\n\r\n**2) Change JS fallbacks (initial values when there’s no `localStorage`):**\r\n\r\n```js\r\nlet lang = localStorage.getItem('lang') || 'zh';\r\nlet baseColor = localStorage.getItem('baseColor') || '#0078ff';\r\n// whether the sidebar is collapsed by default\r\nconst collapsedSaved = (localStorage.getItem('sidebarCollapsed') ?? '0') === '1';\r\n// default render mode\r\nlet renderMode = 'grid'; // or 'balls'\r\n```\r\n\r\n\u003e Note: if you’ve used the UI before, the browser may store your settings in `localStorage`. To make your new defaults take effect, clear them:\r\n\r\n```js\r\n['lang','baseColor','sidebarCollapsed','invX','invY'].forEach(k=\u003elocalStorage.removeItem(k));\r\n```\r\n\r\n## Roadmap\r\n\r\n- Noisy distributions for particle radius/color\r\n- WebGL acceleration\r\n- Export/Load setting presets\r\n- Auto-detect mobile device","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingshing%2Ffluid-simulator-online","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjingshing%2Ffluid-simulator-online","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingshing%2Ffluid-simulator-online/lists"}