Skip to content

Halftone

Playground

Colour

Pointer

Install

npm install @shavin/fx
import { Halftone } from "@shavin/fx";

Works with

React

Client component; Next.js and any React 18+ app

Remotion

Frame-exact through FxTimeProvider or time

Usage

Component Source
import { Halftone } from "@shavin/fx";

<Halftone />

Props

PropTypeDefaultDescription
colorsFxPalette: "theme" | "native" | "brand-dark" | "brand-light" | string[] | { light: string[]; dark: string[] }"theme"Palette. "theme" follows the brand and light/dark; "native" is monochrome slate ink; "brand-dark" / "brand-light" force one side; an array is a custom [waveColor, bgColor] pair.
color"theme" | "monochrome" | "brand-dark" | "brand-light" | string[]—Deprecated: use colors ("monochrome" is colors="native").
cellnumber14Grid cell size in CSS px.
speednumber0.25How fast the wave flows.
frequencynumber1.6Spatial frequency of the wave.
amplitudenumber0.5How far the wave distorts.
intensitynumber1Contrast and colour intensity multiplier.
interactivebooleantrueThe pointer pushes the wave aside (mouse, touch and pen). Ignored under reduced motion.
mouseRadiusnumber0.3Radius of the pointer's influence, relative to the canvas height.
timenumber—Controlled time in seconds (e.g. frame / fps in Remotion); also read from FxTimeProvider.
Configure Theme
Theme
Brand Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font