tvf explained how leaves become a curve

Scroll, and the picture follows. A shape in this format is a handful of points and nothing else; this page shows, in five steps, how a curve comes out of them and why moving them is all an animation needs.

or scroll, and the picture follows

1

Eight leaves

A shape is a few points spaced evenly round a loop, its leaves. Here are eight. That is all that is stored: no handles, no tangents, no segments, two short rows of numbers.

2

The curve through them

The curve is recovered from the leaves by summing them against one kernel, which is 1 at its own leaf and 0 at every other. So the curve passes through every leaf exactly, and closes on itself with no seam. Eight leaves evenly round a circle give the circle back.

3

Move one leaf

Move one leaf out and the curve goes with it, through it, and settles back into the others. The faint line is where it was. A leaf moves the curve near it the most and the rest of it less and less; the other leaves do not move at all, and the curve still passes through every one.

4

No kink

Up close, the bump is smooth. The curve holds no detail finer than its leaves allow, so the worst a single leaf can do is a smooth bump, never a kink. A sharp corner takes more leaves, or a shape kept exact.

5

A morph is a blend

Each leaf goes straight to where a star's leaf is, and the curve comes with them, through them all the way. Blending two shapes is blending their leaves, number by number: that is the whole of a morph, and why every animation in these galleries is a few kilobytes of keys.

How this page is made

The picture is one scene, leaves.tvfs (about 33 kB), made in the leaf editor from shapes, morphs that play once, a camera and four stops, and played here by the TVF player. Scrolling sets its clock; each step is the stretch between two of its stops. The same scene is on the animated page, where live plays it in the editor and waits at each stop for a click.

1 / 5 · 0.00