https://github.com/lavashikk/egui-snow
A lightweight, zero-layout-impact snowfall effect widget for egui
https://github.com/lavashikk/egui-snow
egui gamedev gui particles widgets
Last synced: 6 months ago
JSON representation
A lightweight, zero-layout-impact snowfall effect widget for egui
- Host: GitHub
- URL: https://github.com/lavashikk/egui-snow
- Owner: LaVashikk
- License: mit
- Created: 2025-12-20T10:34:52.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-20T11:01:02.000Z (6 months ago)
- Last Synced: 2025-12-22T15:57:30.157Z (6 months ago)
- Topics: egui, gamedev, gui, particles, widgets
- Language: Rust
- Homepage: https://lavashikk.github.io/egui-snow/
- Size: 1.23 MB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# egui-snow
[](https://crates.io/crates/egui-snow)
[](https://docs.rs/egui-snow)
[](https://github.com/LaVashikk/egui-snow/blob/main/LICENSE)
A lightweight, performant snowfall effect widget for [egui](https://github.com/emilk/egui).
It renders particles on top of your UI (or behind it) without affecting layout allocation. Ideally suited for festive themes or atmospheric effects.
[**Run Web Demo**](https://lavashikk.github.io/egui-snow/)

## Usage
Add to `Cargo.toml`:
```toml
[dependencies]
egui = "0.33"
egui-snow = "0.33"
```
In your update loop:
```rust
use egui_snow::Snow;
fn update(ctx: &egui::Context, ...) {
// Render your UI...
egui::CentralPanel::default().show(ctx, |ui| {
ui.label("Hello, Winter!");
});
// Render snow on top
Snow::new("snow_effect")
.color(egui::Color32::from_white_alpha(200))
.speed(40.0..=100.0)
.size(0.5..=3.0)
.show(ctx);
}
```