Skip to content
PixiKit

Cube Horizon

A sea of small square pixels rolling toward a curved horizon: crests catch the colour, troughs fade, and the far rows melt into haze. The pointer leaves a wake and a click drops a ripple.

pixikit.com/docs/effects/cube-horizon

Customize

Preset
Color
Accent color
Background color
Density1.00
Voxel size0.55
Roundness0.20
Tilt1.00
Horizon0.56
Curvature0.50
Wave height1.00
Wave length1.00
Speed0.50
Turbulence0.40
Brightness1.00
Glow1.00
Haze0.70
Bloom0.50
Focus0.25
Aperture0.35
Grain0.25
Interactive
Ripples1.00
Intro
Paused

Props

30
NameTypeDefaultDescription
preset"horizon" | "calm" | "dots" | "dusk" | "grid" | "planet" | "storm""horizon"A named look. Values you leave at their default follow it; anything you set wins.
colorstring"#5227FF"Colour of the field in the troughs and the distance.
accentColorstring"#B19EEF"Colour of the crests and of the light on the horizon.
backgroundColorstring"transparent"Fill behind the field. Transparent shows the page; on a light backdrop the pixels are drawn as ink.
densitynumber1How many pixels make up the field. Higher values give finer ones.
voxelSizenumber0.55Size of each pixel as a share of the grid spacing.
roundnessnumber0.2Corner rounding, from 0 (square) to 1 (round dots).
tiltnumber1How flat the pixels lie on the surface. 1 lays them on the waves, 0 turns them to face you.
horizonnumber0.56Height of the horizon, as a share of the frame from the top.
curvaturenumber0.5How far the horizon falls away at the sides, from flat to a planet limb.
waveHeightnumber1Height of the waves. 0 gives a flat field.
waveLengthnumber1Length of the waves. Lower values give a choppier sea.
speednumber0.5How fast the waves roll in. 0 holds them still.
turbulencenumber0.4Amount of smaller crossing waves riding on the swell.
brightnessnumber1Overall brightness of the pixels.
glownumber1Light along the horizon.
hazenumber0.7Soft atmosphere hugging the horizon. 0 leaves the sky clear.
bloomnumber0.5Soft glow around the brightest pixels on a dark backdrop.
focusnumber0.25Distance held in sharp focus, from 0 (nearest) to 1 (the horizon).
aperturenumber0.35Depth of field. Higher values soften pixels away from the focus.
grainnumber0.25Fine grain over the lit areas.
interactivebooleantrueThe pointer leaves a wake in the field and a click drops a ripple into it.
ripplesnumber1Strength of the wake and the ripples.
introbooleantrueLight comes up from the horizon toward you on mount.
pausedbooleanfalseStops the motion. Reduced motion shows a still field.
dprnumber2Maximum device pixel ratio of the canvas, capped at 2.
refRef<CubeHorizonHandle>NoneGives ripple(x, y, strength) and replay().
childrenReactNodeNoneContent laid over the effect, such as a hero headline.
classNamestringNone
styleCSSPropertiesNone

Related