Playground · 08

Hallway

A corridor of rigid colour frames, held at one angle while the room passes by.

Move across it to look around, just a little.

How it works

Thirty frames, each a little narrower than the one in front, so they nest like a telescope. A frame’s size depends only on how far down the hall it sits, so no frame can pass through another.

The colour is Plate G’s. The soft heat map is unrolled onto the walls, so you travel through its bands. Each frame steps the colour at its seam, as Plate G’s strips do, and all of it prints through the same six noise tiles.

The view is locked. The far end stays on the left edge and the room passes by. The cursor can only turn your head three degrees in any direction, and it settles back when you leave.

// the angle is a constant; the cursor only adds a small turn on top of it
const reach = Math.hypot(cx, cy), keep = reach > 1 ? 1 / reach : 1;
look.x += (cx * keep * LOOK_AROUND - look.x) * ease;
look.y += (cy * keep * LOOK_AROUND - look.y) * ease;