Events

Discrete events as an input: the most recent presses on the canvas, each with where it happened, how long ago, and a random seed of its own. Overlapping transients (click ripples, bursts, rain on a puddle) need a queue, which a boolean prop cannot be.

import {events} from 'shaders/std'

Types

TypeWhat it is
EventsInputinterface EventsInput extends InputNode { readonly kind: 'events' readonly source: 'click' readonly max: number readonly maxAge: number }

Words