durian-hypermediaStyle

All fixtures · From the Format page · format/59-animation-the-author-sets-the-beat.dh.md

Source
---
title: "Animation: the author sets the beat"
description: A fixture made from the Format page section of the same name.
---

## Animation: the author sets the beat

Format version 9 gives the author more say over motion, still with no times or pixels. `then` starts the next beat of a step: what comes after it waits for what came before. `pace slow` or `pace fast` sets a step's speed. `spotlight` dims everything else for one step. `say cache below: …` says where the speech goes. `path=arc` makes a move travel over an arc. Things a step does not change never move.

```animation
family app "the app"
family data "data"
person u "reader"
group app "web app" layout=column is=app
box h "handler" in app is=app
box cache "cache" is=data
cylinder db "database" is=data
group tray "pages ready" layout=row
u -> app
app -> cache
app -> db
@step A reader asks the web app for a page.
send "GET /a" u -> app
@step The app looks in the cache; then the cache answers.
spotlight app cache
send "find /a" app -> cache
then
say cache below: not here
@step So the app reads the database. The pace is slow, so the wait shows.
pace slow
send "read /a" app -> db
@step The handler builds the page; then it moves over to the pages that are ready.
add box page "page /a" in app is=app
then
move page to tray path=arc
```
LLM view
---
title: "Animation: the author sets the beat"
description: A fixture made from the Format page section of the same name.
source: format/59-animation-the-author-sets-the-beat.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->

## Animation: the author sets the beat

Format version 9 gives the author more say over motion, still with no times or pixels. `then` starts the next beat of a step: what comes after it waits for what came before. `pace slow` or `pace fast` sets a step's speed. `spotlight` dims everything else for one step. `say cache below: …` says where the speech goes. `path=arc` makes a move travel over an arc. Things a step does not change never move.

Animation, 4 steps. Starts with: person u "reader"; group app "web app" [box h "handler"]; box cache; cylinder db "database"; group tray "pages ready". Connected: u -> app, app -> cache, app -> db. Families, one colour each: app "the app" (app, h); data (cache, db).

1. A reader asks the web app for a page.
   u -> app: GET /a
2. The app looks in the cache; then the cache answers.
   app -> cache: find /a
3. So the app reads the database. The pace is slow, so the wait shows.
   app -> db: read /a
4. The handler builds the page; then it moves over to the pages that are ready.

Animation: the author sets the beat

Format version 9 gives the author more say over motion, still with no times or pixels. then starts the next beat of a step: what comes after it waits for what came before. pace slow or pace fast sets a step's speed. spotlight dims everything else for one step. say cache below: … says where the speech goes. path=arc makes a move travel over an arc. Things a step does not change never move.

Animation, 4 steps. Starts with: person u "reader"; group app "web app" [box h "handler"]; box cache; cylinder db "database"; group tray "pages ready". Connected: u -> app, app -> cache, app -> db. Families, one colour each: app "the app" (app, h); data (cache, db). 1. A reader asks the web app for a page. u -> app: GET /a 2. The app looks in the cache; then the cache answers. app -> cache: find /a 3. So the app reads the database. The pace is slow, so the wait shows. app -> db: read /a 4. The handler builds the page; then it moves over to the pages that are ready.

  • the app
  • data
web appweb apppages readypages readyreaderreaderhandlerhandlercachecachedatabasedatabaseGET /a
1A reader asks the web app for a page.
1 / 4
All steps (4)