ASCII Horizon
A drifting gradient of light drawn in characters, where brighter light picks denser characters and the cursor scrambles them.
pixikit.com/docs/effects/ascii-horizon
Customize
Preset
Colors4 of 10
Shape
Characters
Cell size18px
Density0.80
Glyph opacity0.85
Gradient opacity0.90
Glow0.20
Depth of field0.00
Flicker0.20
Softness0.50
Scale1.00
Flow0.50
Speed1.00
Grain0.08
Variation0
Mouse interaction
Scramble radius0.10
Click effect
Intro
Light mode
Props
26| Name | Type | Default | Description |
|---|---|---|---|
preset | "atmosphere" | "lagoon" | "rose" | "corona" | "atmosphere" | A ready-made look; every prop you set yourself still wins over it. |
colors | string[] | ["#1e3fd8", "#f6f8ff", "#a5d8ff", "#38bdf8"] | Two to six colours for the light, from the edge of the shadow to the brightest point; horizon spreads the last colour across the sky and runs the others toward the glow at the top. Dark areas stay transparent. |
shape | "horizon" | "pinch" | "rise" | "eclipse" | "horizon" | Horizon glows over a dark curve, pinch is a band of light squeezed in the middle, rise glows up from the bottom and eclipse rings a dark disc. |
characters | "letters" | "classic" | "binary" | "blocks" | "dots" | (string & {}) | "letters" | Character set from dimmest to brightest: letters, classic, binary, blocks or dots, or your own string of characters. |
cellSize | number | 18 | Height of each character cell in px. |
density | number | 0.8 | Share of cells that show a character, from 0 to 1; brighter areas fill in first. |
glyphOpacity | number | 0.85 | How strongly the characters stand out from the gradient. |
gradientOpacity | number | 0.9 | Opacity of the gradient behind the characters; at 0 only the characters are left. |
glow | number | 0.2 | Soft glow around the characters, from 0 to 1.5. |
depthOfField | number | 0 | Share of characters drawn out of focus, from 0 to 1. |
flicker | number | 0.2 | How often characters swap with their neighbours in brightness, from 0 to 1. |
softness | number | 0.5 | How soft the edges of the shape are, from 0 to 1. |
scale | number | 1 | Size of the shape, from 0.4 to 2.5. |
flow | number | 0.5 | How much the light wavers as it drifts, from 0 to 2. |
speed | number | 1 | Speed of the drift; 0 holds the shape still. |
grain | number | 0.08 | Strength of the film grain, from 0 to 0.4. |
variation | number | 0 | Picks a different drift and a different pattern of characters. |
mouseInteraction | boolean | true | Scrambles the characters under the cursor as it moves; they settle back a moment later. |
scrambleRadius | number | 0.1 | Size of the scrambled area around the cursor, relative to the container height. |
clickEffect | "wave" | "burst" | "none" | "wave" | Wave sends a ring of scrambled characters out from the click, burst scrambles a patch under it. |
intro | boolean | true | Fades the light in from its source while the characters decode. |
lightMode | boolean | false | Draws the gradient as a wash on light backgrounds, with characters a shade darker. |
fontFamily | string | "\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" | Font used for the characters; monospaced fonts keep the grid even. |
dpr | number | 2 | Highest device pixel ratio drawn. |
className | string | None | Extra class names for the canvas. |
style | CSSProperties | None | Inline styles for the canvas. |