Agent Avatar
Canvas-based generative pixel avatar for AI agents. Each seed produces a unique, deterministic pattern with animated color shifts.
Installation
npx smoothui-cli add agent-avatarFeatures
- Deterministic pixel patterns generated from a seed string
- Animated color oscillation with per-pixel phase offsets
- Retina-ready with
devicePixelRatioscaling - Circular clipping with outer glow
- Respects
prefers-reduced-motion
Accessibility
Reduced Motion
This component respects the prefers-reduced-motion media query via window.matchMedia. When reduced motion is preferred, canvas animations are stopped and a single static frame is rendered instead.
ARIA
The <canvas> element includes role="img" and an aria-label derived from the seed prop, ensuring screen readers announce the avatar meaningfully.