This example implements the Lilac Chaser illusion: a ring of lilac disks with one disappearing wedge, creating the perception of a rotating gap and a green afterimage.
From the repository root:
cd examples/lilac_chaser
go run . -d
-d
Developer mode (windowed 800×800 instead of exclusive fullscreen).
-r float
Radius of the lilac disks in pixels.
Default: 40.
-R int, -G int, -B int
RGB components of the disk color (0–255 each).
Defaults: R=250, G=217, B=248 (a typical lilac color).
Example:
go run . -d -r 50 -R 255 -G 180 -B 220
control.White).clock.Wait(100).ESC or close the window to quit.