# Powder Simulation

**URL:** <https://forum.modular.com/t/powder-simulation/2611>\
**Category:** Community Showcase\
**Created:** [January 17, 2026, 5:09pm UTC](https://forum.modular.com/t/powder-simulation/2611 "2026-01-17T17:09:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HammadHAB](https://avatars.discourse-cdn.com/v4/letter/h/e495f1/32.png) [@HammadHAB](https://forum.modular.com/u/HammadHAB)\
**Post date:** [January 17, 2026, 5:09pm UTC](https://forum.modular.com/t/powder-simulation/2611/1 "2026-01-17T17:09:57Z")

</div>

I recently made gtk bindings ([Mojo-GTK](https://forum.modular.com/t/mojo-gtk-autogenerated-gtk-bindings-for-mojo/2581/4)) for mojo and to test them out I made this little powder sim using cairo and GTK. It’s pretty simple (Only contains Sand, water, fire, stone and wood), but it was a fun experiment!

- [Github Source](https://github.com/Hammad-hab/Mojo-GTK/blob/main/gtk-demos/powder.mojo)

- [Mojo-GTK](https://github.com/Hammad-hab/Mojo-GTK)

 ![image](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/1724657152a2d361db2015b2dfed9735067e8a59.png)

---

<div class="post-metadata">

**Author:** ![inaarawalji](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/inaarawalji/32/742_2.png) [@inaarawalji](https://forum.modular.com/u/inaarawalji)\
**Post date:** [January 23, 2026, 9:17pm UTC](https://forum.modular.com/t/powder-simulation/2611/2 "2026-01-23T21:17:42Z")

</div>

> [@HammadHAB](#):
>
> I recently made gtk bindings ([Mojo-GTK](https://forum.modular.com/t/mojo-gtk-autogenerated-gtk-bindings-for-mojo/2581/4)) for mojo and to test them out I made this little powder sim using cairo and GTK. It’s pretty simple (Only contains Sand, water, fire, stone and wood), but it was a fun experiment!
> 
> - [Github Source](https://github.com/Hammad-hab/Mojo-GTK/blob/main/gtk-demos/powder.mojo)
> - [Mojo-GTK](https://github.com/Hammad-hab/Mojo-GTK)

Love this! 🎉 Thanks for sharing 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/2751e0fbdc595a99718b216730957e9db4448cfd.jpeg) [@system](https://forum.modular.com/u/system)\
**Post date:** [July 22, 2026, 9:18pm UTC](https://forum.modular.com/t/powder-simulation/2611/3 "2026-07-22T21:18:18Z")

</div>

Closed on July 22, 2026, 9:18pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
