summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-24 21:30:52 -0300
committerGabriel Schneider <[email protected]>2026-10-24 22:33:46 -0300
commit408412838ce7bf3156ba8aa6f95057a72ebdd284 (patch)
treed96d8d66471127a459efd34b636495830350235a /docs
parentf8bf3331ce99d98b25b0dfcc877db9c1dd06f77b (diff)
downloadpardes-408412838ce7bf3156ba8aa6f95057a72ebdd284.tar.gz
pardes-408412838ce7bf3156ba8aa6f95057a72ebdd284.zip
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
Diffstat (limited to 'docs')
-rw-r--r--docs/next-anim.md25
1 files changed, 25 insertions, 0 deletions
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