1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! OpUI is a Rust library for building stylish realtime 2D visuals.
//!
//! It provides a small scene runtime, reusable visual layers, and built-in
//! layered presets for atmospheric hero scenes.
//!
//! ```no_run
//! use macroquad::prelude::*;
//! use opui::{GlassWaveConfig, GlowStyle, LiquidOrbConfig, OrbSpec, Palette, SceneStack, VisualApp};
//!
//! # async fn demo() {
//! let scene = SceneStack::new()
//! .gradient(color_u8!(7, 14, 29, 255), color_u8!(9, 28, 54, 255))
//! .mist(color_u8!(118, 238, 255, 255), 220)
//! .glass_waves(
//! color_u8!(108, 238, 255, 255),
//! color_u8!(255, 127, 209, 255),
//! GlassWaveConfig::new(24, 12).spacing(40.0).amplitude(18.0).speed(0.9),
//! )
//! .liquid_orbs(
//! LiquidOrbConfig::new(Palette::neon_night()).orbs(vec![
//! OrbSpec::new(84.0, 90.0, 0.95, 0.0, 18.0, color_u8!(83, 255, 233, 255)),
//! OrbSpec::new(140.0, 145.0, -0.72, 1.4, 24.0, color_u8!(255, 84, 176, 255)),
//! ]).glow_style(GlowStyle::soft()),
//! )
//! .scanlines(WHITE)
//! .vignette(color_u8!(8, 18, 38, 255));
//!
//! VisualApp::new(scene).run().await;
//! # }
//! ```
pub use VisualApp;
pub use Palette;
pub use ;
pub type SceneStack = LayerScene;
pub use ;
pub use ;