Skip to content
LaVashikkPublic

About

A lightweight, zero-layout-impact snowfall effect widget for egui

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

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.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);
}

About

A lightweight, zero-layout-impact snowfall effect widget for egui

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Contributors

Languages