use agent::Face;
let face = Face::from("Sara");
div().w(px(48.)).h(px(48.)).child(agent::avatar(face.pose(t))) // smooth, any size
div().w(px(13.)).h(px(13.)).child(agent::mascot(&face, t)) // 8×8 cells, for tiny sizes- Both elements fill their parent; size the parent.
tis the caller's clock in seconds.pose(0.)is a face that never moves.- Names are trimmed, lowercased and whitespace-collapsed before seeding; they are not Unicode-normalised.
- Colour is
theme.accentunlessFace::colorsets it.Pose::lerpblends two faces;mascotcannot draw a blend.