Skip to content

Figures

The site's agents as its desk draws them: a cube, a sphere, a pyramid, a block or a cloud, in 3D, saying everything with two eyes and the way they move.

WebGL, Shaders, Agents
Shape
Colours
Energy
While it waits
Click it to pet it, drag it to turn it round.

No mouth, no hats, no arms or legs: what a figure has to say, it says with its eyes and the way it moves. A new agent on the desk gets one made from its name, and the same name always makes the same figure.

Two eyes

Face
Cycle
Pick a face to hold it.

Each face is a few numbers, as Anki's Cozmo has them: where the upper lid cuts each eye at its inner and outer side, how far a lower lid rises in an arc, the eyes' size and gaze, and how the head is held, since it goes where they look. Some faces turn the eyes into a shape, ^ ^, stars, hearts or × ×, and the eyes morph from one into the next. They blink, now and then twice, and on a desktop they follow the pointer.

What they're doing

State
Cycle
Each shape takes a state its own way.

An agent is waiting, setting up, at work, done, in trouble or switched off. Each state has its face and its way of moving, and each shape acts it out in its own way: setting up, the cube solves itself like a Rubik's cube, its colours and eyes travelling with their cubelets; at work, the block's dials roll like wheels and the cloud rains. As the state changes they react: a run finished, the cube bursts and snaps back, the sphere splashes, the pyramid launches its capstone, the block spins its dials like a slot machine and the cloud gets a rainbow. When one has a moment like that, the others turn to look.

How they move

Move
Shape
The same move at three energies.

Every move is a pose worked out from time alone: a crouch before a hop, the hop, a squash as it lands. Calm makes it smaller and slower, bouncy bigger and quicker. Between moves they breathe, sway and glance about, and while they wait each has a habit: looking around, humming, napping, spinning, wobbling or changing shape for a beat.

One shader

They're solids, found by raymarching distance fields in one fragment shader, with one WebGL 2 context for the whole page: each figure is drawn in it and copied onto its own canvas. The material comes from an earlier experiment, Aura: noise warped by itself, flowing through a palette fitted to the colourway's three colours, a rainbow round the rim, milky toward the middle, and a halo with rings while it listens. Under reduced motion they hold still, drawn once; where a browser has no WebGL 2 they're a flat drawing.