WarpFields

object WarpFields

Warp fields worth having. Each is one function, and each folds the picture a different way.

Properties

Link copied to clipboard

Up to four lenses falling down the screen, each bending whatever passes behind it. uWarpParams.x is how many, uWarpParams.y the fall clock and uWarpParams.z how strong.

Link copied to clipboard
const val FLOW: String

The field read from noise, so the picture is dragged the way ink is dragged through water.

Link copied to clipboard
const val FOLD: String

Folds the picture round the middle into six mirrored wedges, the way a kaleidoscope does.

Link copied to clipboard
const val JULIA: String

The Julia set's own rule: square the position and add a constant.

Link copied to clipboard
const val JULIA_WALK: String

The Julia rule with the constant handed in as uWarpParams.xy, so the drawing can walk it round the edge of the Mandelbrot set and jump it from one bulb to another.

Link copied to clipboard
const val LENS: String

A handful of lenses drifting about, each bending whatever passes behind it.

Link copied to clipboard
const val RIPPLE: String

Rings travelling outward from the middle, pushed harder on every kick.

Link copied to clipboard
const val SPECTRO: String

A swirling flow shaped partly by the spectrogram, so the music's own past steers the picture.

Link copied to clipboard
const val TWIST: String

Turns more the further out you go, so straight marks become spirals that tighten.

Link copied to clipboard
const val WELLS: String

Rings travelling out from two wells, one ring a beat. The second well sits at uWarpParams.xy from the first, as much as uWarpParams.z of it, and uWarpParams.w sets how close the rings are. Where the two sets of rings cross they interfere.