Developers6 of 7

lil-gui panels

lil-gui and dat.GUI as faders.

Operatour handles a sketch's existing lil-gui or dat.GUI panel.

Off the wall, in every edition

The panel never reaches the output, in every edition. Zero setup: leave it in.

On the surface, from v1

From v1, Operatour also reads the panel: every control it can drive goes into the parameters list, under the panel's name, with your labels and ranges.

Bind, modulate, save with the show. Your onChange runs exactly as on a knob drag, so a panel that rebuilds geometry on change keeps working.

Ranges come from the panel itself, not guessed; the control is put back where it was found.

What is left alone

A control with no range (gui.add(state, 'x'), no min and max) is skipped: no sensible fader to make. Give it a range and it appears:

gui.add(state, 'x', 0, 10);

Tweakpane panels: recognised, not yet playable.

Panel or declare?

Both work; a sketch can use both.

  • Panel: what you already have, at no cost. For a sketch in progress.
  • declare(): explicit about what is playable, in your order, with your labels. For a sketch handed to someone else, or to yourself in six months at a venue.