A halftone built from characters of different sizes. Each cell shrinks its glyph and swaps it for a lighter one in the shadows, and swells into a bold dense glyph in the highlights, so a lit sphere or a ribbon of waves emerges from pure type. Pass any image through src to render it instead. The picture assembles from the center outward, the pointer acts as a lens that pushes glyphs aside and swells them, and clicks send a shock ring through the type. Glyph atlas with one size per brightness level, adaptive cell budget, paused off screen and a still frame under reduced motion.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { GlyphHalftonePortrait } from "@/components/hyperblur-pro/glyph-halftone-portrait"
<GlyphHalftonePortrait style={{ height: 520 }}>
<div style={{ display: "grid", placeItems: "center", height: "100%", color: "#fff" }}>Your hero</div>
</GlyphHalftonePortrait>| Prop | Type | Default | Description |
|---|---|---|---|
| palette | string[] | ["#2a0a1f", "#a1245b", "#ff5c7a", "#ffc2a8", "#fff6ee"] | Color stops from the shadows to the brightest highlights. Glyph size and color rise together with brightness. |
| charset | string | ".,:;ox%#@" | Characters ordered from the lightest to the densest ink. Brightness picks both the character and its size. Whitespace is ignored. |
| density | number | 1 | Multiplier for the number of cells. Higher values give a finer halftone. The cell count is capped for performance. |
| speed | number | 1 | Speed of the orbiting light and the waves. 0 freezes the animation. |
| interactive | boolean | true | The pointer bends the glyphs around it like a lens and clicks or taps send a shock ring through the picture. |
| shape | "sphere" | "wave" | "sphere" | Built-in subject used when no src is given: a lit sphere with an orbiting light, or flowing ribbons of waves. |
| src | string | - | Optional image URL. The image is read as brightness and cover-fitted to the field. It must be same-origin or served with CORS headers, otherwise the built-in shape is used. |
| background | string | "#08040c" | Color behind the glyphs. |
| children | React.ReactNode | - | Content rendered on top of the field. |
| className | string | "" | Classes for the root element. Give it a size. |
| style | React.CSSProperties | - | Inline styles for the root element. |
Source code is included in Standard and above