A lightweight, performant snowfall effect widget for egui.
It renders particles on top of your UI (or behind it) without affecting layout allocation. Ideally suited for festive themes or atmospheric effects.
Add to Cargo.toml:
[dependencies]
egui = "0.34"
egui-snow = "0.34"In your update loop:
use egui_snow::Snow;
fn ui(&mut self, ui: &mut egui::Ui, ...) {
// Render your UI...
egui::CentralPanel::default().show(ui, |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(ui);
}