ZeroGravity UI

Mediaexperimental

Raster

One picture through four stylised abstractions: blur, glass, glyph, pixel.

Abstract poster of a sun setting behind layered hills

Customize

Modehow the picture is abstracted
mode
disabled
interactive
animated
Tuningoptions for the selected mode
22blurStrength
18distortion
10cellSize
glyphSet
18pixelSize
2gridGap
0.28rounded

Usage

TSX
<Raster />

Generated from the controls above. Only props that differ from their defaults are shown.

Props

14 documented props on Raster
PropertyTypeDefaultDescription
mode"blur" | "glass" | "glyph" | "pixel""pixel"Mode.
disabledbooleanfalseShow the original.
interactivebooleanfalseReveal on hover.
animatedbooleantrueAnimated.
blurStrengthnumber22Blur. Range 4 to 60.
distortionnumber18Distortion. Range 0 to 50.
cellSizenumber10Glyph cell. Range 6 to 28.
glyphSet"ascii" | "dots" | "blocks" | "ink""ascii"Glyph set.
pixelSizenumber18Pixel size. Range 6 to 48.
gridGapnumber2Pixel gap. Range 0 to 8.
roundednumber0.28Pixel rounding. Range 0 to 1.
srcstring—Image URL or imported asset.
altstring—Alternative text. Empty string if the image is decorative.
aspectRatiostring"16 / 9"CSS aspect ratio for the frame.

Dependencies

0 external runtime dependencies

Ships with nothing but React.

Experimental: still under evaluation and not part of the published package yet.