A shape can be glass: a lens, tiles, a wave, a ripple, a funhouse mirror

A warp is a remap in space. Like a remap it draws nothing of its own and
lands on what is drawn before it, so it goes between things by draw order
alone: what is under the glass is bent and what is drawn after it is not.
It is the colour [:warp kind], offered after remap in the tool strip and
the inspector's colour row.

Each kind is a field in the shape's own space, so a lens magnifies about
its own middle and moves, turns and scales with its node, inside a placed
symbol too, where it still bends what that symbol is drawn over. Its
amount, size and phase are channels a warp colour gives the shape, as a
sound has a gain, so they key and tween like any other; amount 0 is
untouched for every kind. The rasteriser collects what the shape covers,
reads every pixel and then writes them, so the cost is what it covers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Olive Vaughn 2026-11-24 07:59:09 -05:00
parent d2245d7720
commit 4cee461ecd
13 changed files with 417 additions and 30 deletions

View file

@ -1866,6 +1866,17 @@ button.tl-gap:hover { background: rgba(47, 111, 192, .28); }
background: linear-gradient(135deg, #3a3f52 0 50%, #e8d9a8 50% 100%);
color: #fff; font-size: 11px; line-height: 1; text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
}
/* A warp: glass, which shows what is behind it from somewhere else. */
.palette-grid .cell.warp,
.palette-grid .chip.warp,
.swatch.warp {
display: grid; place-items: center;
background: linear-gradient(160deg, #e9f3f7 0 45%, #b9d3de 100%);
color: #22303a;
}
.palette-grid .cell.warp svg { width: 11px; height: 11px; }
.palette-grid .chip.warp svg { width: 18px; height: 18px; }
.swatch.warp svg { width: 10px; height: 10px; }
.palette-grid .cell { position: relative; }
.palette-grid .cell .badge {
position: absolute; right: -2px; bottom: -2px;