From 408412838ce7bf3156ba8aa6f95057a72ebdd284 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 24 Oct 2026 21:30:52 -0300 Subject: anim 9: a stream of inputs moves the view at its own rate: the picture's motion is one system (lag, speed, what feeds it) integrated in one place; a held key, a spun wheel, a held Ctrl-d feed it at their rate instead of an ease a line; the spring settles it once they stop, never past its mark --- docs/next-anim.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'docs') diff --git a/docs/next-anim.md b/docs/next-anim.md index 9f43a232..1acdeacf 100644 --- a/docs/next-anim.md +++ b/docs/next-anim.md @@ -163,6 +163,31 @@ keeps the rows that left for the gap, and kicks the spring. test checks). - The caret and the glide quad ride the picture (`glideLift`). +### The view's motion is one system (anim 9) + +The author watched sample 3 and saw a bounce a line under a held j: every +repeat restarted the spring's ease to its new target, so the picture sped +up and slowed down once an input. Now the picture's motion is one system +with its own state (`Glide`: its lag behind the text, its speed, and the +inputs that have been feeding it), integrated in one place every frame +(`Glide.advance`), and every scroll is an input into it (`Glide.kick`), +absorbed by what the system is doing: + +| the system is | an input comes | it does | +|---|---|---| +| at rest | any move (a j, a notch, a page, a jump) | the spring starts an ease from rest | +| easing | the same way, within 150 ms | the inputs are a stream now: it moves at their rate (rows an input over their spacing), a lag of an input or so behind, never easing to each | +| fed by a stream | another of the stream | the target moves on; the speed stays the stream's | +| fed by a stream | the inputs stop (none for 1.5 spacings) | the spring settles it, from the speed it has, never past its mark: the only ease-out | +| moving | an input the other way | the stream ends; the spring turns it through zero from its speed | +| moving | a jump past what two frames share | its rows are added (the stitched slide); the speed carries on | + +So a held j, a spun wheel and a held Ctrl-d are the same case (a stream), +a single j or notch the same ease as before. Every input, a repeat too, +is still drawn at once: in a stream the picture is on the stream's +straight line wherever a frame samples it (tried: holding repeats to the +next tick cost a held key 7 ms of latency for no evenness one could see). + ### The cursor (anim 4) The thin caret glides as the block does. A step of a cell or less eases -- cgit v1.3