Skip to main content

Install

Terminal
That writes one file: compositions/halftone-field.html.

Add it to your video

It runs for 10 seconds at 1920×1080. Paste this into your composition:
index.html
Move it in time with data-start. Put it on a different timeline row with data-track-index. See data attributes for the rest.

Change how it looks

Set these CSS variables on the block:
  • --frequency — Field frequency (1 = broad swells, 10 = fine mottle). Defaults to 2.
  • --speed — Flow speed (0 freezes the field). Defaults to 5.
  • --cellsize — Cell size (dot pitch, 1 = 6px, 100 = 60px). Defaults to 54.
  • --gamma — Gamma: midtone crush, the whole look. Low values flatten it to an even grey dot field. Defaults to 12.
  • --palettebias — Palette bias: floor under every dot’s size and palette position. 0 lets the darks go fully black. Defaults to 2.
  • --palette1 — Palette stop 1 (lows). Defaults to #00AAFF.
  • --palette2 — Palette stop 2. Defaults to #C2FF67.
  • --palette3 — Palette stop 3. Defaults to #6600FF.
  • --palette4 — Palette stop 4 (crests). Defaults to #000000.
  • --background — Background. Defaults to #000000.
  • --quantize — Quantise to 30fps for a stepped LED-wall look. Defaults to false. Options: false, true.
Tagged webgl shader background texture halftone.