Saturday, August 6, 2022

Show HN: A Gauss-Seidel solver visualization in a single HTML file https://ift.tt/kMcqAOS

Show HN: A Gauss-Seidel solver visualization in a single HTML file Recently I was reading about fluid simulation and stumbled upon the Gauss Seidel method. I got interested in how it works and made a program that visualizes the method in action. I had the idea of making an interactive book-like thing for a while, so took this as a chance to do just that. Note that touch input doesn't work and the layout is targeted towards bigger screens, so it doesn't function properly on mobile. It was fun to make and I wanted to share it. Maybe someone will find it useful. Corrections and feedback are welcome. Technical Stuff - A single 1.7MB HTML file with embedded JavaScript and WebAssembly. You can save this single file and double click it to run. - A math typesetter from scratch in C that compiles/renders the equations in real-time (uses KaTex fonts and STB true type to rasterize the fonts). - Platform code is done using Sokol (tested on windows and web). - The UI is done using Dear ImGui (Most of the code is done in C++ to use ImGui without a wrapper except for the equations compiler). https://ift.tt/iQtnR6e August 7, 2022 at 01:51AM

No comments:

Post a Comment