egui-snow

Crates.ioegui-snow
lib.rsegui-snow
version0.32.0
created_at2025-12-20 11:05:33.692211+00
updated_at2025-12-24 18:52:59.211542+00
descriptionA lightweight, zero-layout-impact snowfall effect widget for egui.
homepagehttps://lavashikk.github.io/egui-snow/
repositoryhttps://github.com/LaVashikk/egui-snow
max_upload_size
id1996348
size92,244
(LaVashikk)

documentation

https://docs.rs/egui-snow

README

egui-snow

Latest version Documentation MIT

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.

Run Web Demo

Demo GIF

Usage

Add to Cargo.toml:

[dependencies]
egui = "0.33"
egui-snow = "0.33"

In your update loop:

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);
}
Commit count: 0

cargo fmt