Skip to main content

agent/
lib.rs

1//! Agent-related UI, apart from the component library: what a chat client
2//! draws around the model, not the widgets it composes.
3//!
4//! Two pieces. [`orbs`] is the model's working state, animated by its own
5//! clock. [`avatar`] is a face: a silhouette generated from a preset, a name or
6//! [`avatar::Shape::random`], painted in the theme's colors.
7//!
8//! ```ignore
9//! agent::avatar(Face::from("Sara").pose(t)).w(px(48.)).h(px(48.))
10//! ```
11
12pub mod avatar;
13pub mod orbs;
14
15pub use avatar::{Face, Pose, avatar};