Tube Warp
A chunky plasma shown on an old tube: posterized blocks, scanlines, a phosphor mask, bloom and curved glass. The cursor twists the picture like a magnet and a click flips the channel.
pixikit.com/docs/effects/tube-warp
Customize
Color
Background color
Light mode
Mask
Speed0.50
Variation0
Wave amplitude0.30
Wave frequency2.5
Levels3
Columns80
Persistence0.40
Curvature0.25
Corners0.00
Scanline strength0.60
Scanline frequency200
Mask strength0.30
Bloom1.50
Bloom radius1.00
Rgb shift0.0030
Noise0.10
Flicker0.15
Interference0.20
Vignette0.30
Brightness1.00
Intro
Mouse react
Mouse strength0.50
Change on click
Render quality
Paused
Props
34| Name | Type | Default | Description |
|---|---|---|---|
color | string | "#c755f7" | Phosphor color of the picture. |
backgroundColor | string | "#120f17" | Color of the tube behind the picture. Pass 'transparent' to show the page. |
lightMode | boolean | false | Dims the picture slightly for light pages. The tube keeps its backgroundColor. |
mask | "aperture" | "shadow" | "slot" | "none" | "aperture" | Phosphor pattern of the tube: vertical stripes, dot triads, slots, or none. |
speed | number | 0.5 | How fast the plasma flows. |
variation | number | 0 | Picks a plasma pattern. Each whole number is a new one. |
waveAmplitude | number | 0.3 | How tightly the plasma folds into bands. |
waveFrequency | number | 2.5 | How many blobs fit on screen. |
levels | number | 3 | Number of brightness steps in the picture. |
columns | number | 80 | Width of the picture in blocks. Fewer columns give chunkier blocks. |
persistence | number | 0.4 | How long the phosphor keeps glowing after the picture moves on. |
curvature | number | 0.25 | Bulge of the glass. |
corners | number | 0 | Rounds the corners of the tube and shows its edge. 0 keeps the picture edge to edge. |
scanlineStrength | number | 0.6 | Depth of the dark gaps between scanlines. Bright lines fill the gaps. |
scanlineFrequency | number | 200 | Number of scanlines from top to bottom. |
maskStrength | number | 0.3 | Visibility of the phosphor mask. |
bloom | number | 1.5 | Glow that spills from bright areas. |
bloomRadius | number | 1 | How far the glow spreads. |
rgbShift | number | 0.003 | Misalignment of the red and blue beams, which fringes edges with color. |
noise | number | 0.1 | Grain in the lit picture. |
flicker | number | 0.15 | Brightness flicker of the tube. |
interference | number | 0.2 | A slow hum bar rolling down the screen and jitter along the lines. |
vignette | number | 0.3 | Darkening toward the edges of the tube. |
brightness | number | 1 | Overall brightness. |
intro | boolean | true | Warms the tube up on mount: the plasma grows out of the dark and pulls into focus. |
mouseReact | boolean | true | The cursor acts like a magnet on the glass and twists the picture. |
mouseStrength | number | 0.5 | Strength of the magnet. |
changeOnClick | boolean | true | A click changes the channel: the picture rolls through static and returns with a new pattern. |
renderQuality | "performance" | "balanced" | "sharp" | "sharp" | Canvas resolution: performance draws at 1x, balanced at 1.5x, sharp at the screen density. |
dpr | number | 2 | Maximum device pixel ratio of the canvas. |
fps | number | 60 | Maximum frame rate of the animation. |
paused | boolean | false | Freezes the plasma. |
className | string | None | |
style | CSSProperties | None |