0Views
0Copies

API Reference
Props for <ASCIIPortrait />
| Prop | Type | Default | Description |
|---|---|---|---|
| backgroundColor | string | "#0a1122" | The surface behind the portrait; a transparent color lets your own background show. |
| skinColor | string | "#eef2ff" | The face and neck, the brightest characters. |
| hairColor | string | "#a8b3cf" | The hair. |
| clothesColor | string | "#6b7796" | The sweater, and the random characters while the face decodes. |
| accentColor | string | "#7cf2b0" | The eyes and the soft glow behind the face. |
| rows | number | 120 | Rows of characters, at most; a short box draws fewer, so a character is never under 5.4px tall. |
| glow | number | 0.1 | Opacity of the accent glow behind the face; 0 removes it. |
| decodeDuration | number | 1200 | How long the face takes to decode out of random characters when it first comes into view; 0 skips it. |
| maxYaw | number | 28 | How far the head turns left and right; past about 35° the sides of the photo smear. |
| maxPitch | number | 13 | How far the head tilts up and down. |
| interaction | 'follow' | 'none' | "follow" | Turns the head toward the pointer anywhere over the parent element; None keeps it facing forward. |
| turnDistance | number | 620 | How far the pointer has to be from the face for the full turn; lower makes the head turn more for smaller moves. |
| idleDelay | number | 2.5 | Seconds without the pointer moving before the head turns back to face forward. |
| scanlines | boolean | true | Thin lines in the background color across the portrait, like an old screen. |
| fadeBottom | boolean | true | Fades the bottom tenth of the portrait out. |
- Category
- Text Effects
- Framework
- React
- Published
- Nov 13, 2026
- Dependencies
- Variants
ASCII Portrait
A developer's photo projected onto a real 3D head in three.js and redrawn as shape-matched ASCII characters. It decodes out of random characters when it comes into view, and the head turns on its neck to follow the pointer. The skin, hair, clothes and eye colors, the density and how far the head turns can all be set.