ZeroGravity UI

Typographystable

Bitmap

Pixel text

Pixel text set on a 5x7 grid, lit by a sweep, a wave or a cycling palette in pure CSS.

ZeroGravity

Customize

Typethe word and the grid it is set on
text
0 pxpixelSize
0.120gap
1tracking
Lightpalette and how it moves across the cells
colors
effect
animated
1.00speed
0.82dim
paused

Usage

TSX
import { Bitmap } from "zerogravity/bitmap"

<Bitmap
    text="ZeroGravity"
    gap={0.12}
    colors={["#4ee1f2", "#c6f432"]}
    dim={0.82}
/>

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

Props

13 documented props on Bitmap
PropertyTypeDefaultDescription
textstring"ZeroGravity"Text.
pixelSizenumber0Pixel size (0 fills the width). Range 0 to 24 px.
gapnumber0.1Gap. Range 0 to 0.5.
trackingnumber1Tracking. Range 0 to 4.
colorsstring[][]Palette (empty uses color).
effect"sweep" | "wave" | "cycle""sweep"Effect.
animatedbooleantrueAnimated.
speednumber1Speed. Range 0.1 to 4.
dimnumber0.6Dim. Range 0 to 1.
pausedbooleanfalsePaused.
colorstring"currentColor"Single colour used when colors is empty.
as"span" | "div" | "p" | "strong" | "h1" … "h6""span"Element that carries the real, screen-reader text.
respectReducedMotionbooleantrueRender the static palette when the reader prefers reduced motion.

Dependencies

0 external runtime dependencies

Ships with nothing but React.