Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crates.io docs.rs Rust version License: MIT OR Apache-2.0 dependency status CI Live Demo

egui-screensaver-mystify

Mystify screensaver for egui.

Renders two bouncing quadrilaterals with colour-cycling trails onto the egui background layer, recreating the classic Windows 3.x Mystify screen saver.

Usage

Add the crate to your Cargo.toml:

[dependencies]
egui-screensaver-mystify = "0.1"

Then call paint every frame from your eframe::App::update implementation, before drawing any UI windows:

use egui_screensaver_mystify::MystifyBackground;

struct MyApp {
    mystify: MystifyBackground,
}

impl eframe::App for MyApp {
    fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
        self.mystify.paint(ctx);
        // … rest of your UI …
    }
}

License

Licensed under either of

at your option.

About

Mystify screensaver for egui — bouncing quadrilaterals with colour-cycling trails

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages