Slide mode: scenes stitched together into a deck of slides #58

Open
opened 2026-11-03 00:56:48 +00:00 by Weissstreifen · 2 comments

Several scenes stitched together into a slide show, for business graphics: presentations with animated charts that play their beats when you click on, like the builds of a slide deck, and the same deck as one video.

The deck file

A deck is a text file like a scene, listing its slides in order:

# scenes/quarterly.deck
theme = business.txt          # one look for every slide (a scene's own theme still wins)
transition = fade 0.4         # the default between slides: none, fade, slide, wipe, ... with seconds

slide title.txt
slide revenue.txt  transition=slide
slide regions.txt  stops=2.5,6   # extra stops inside the slide
slide outlook.txt

Each slide is an ordinary scene, so everything daviz can do already works on a slide, and a scene stays playable on its own.

Presenting

dub run -- present quarterly (or opening a .deck in the player) plays it fullscreen:

  • Stops. A slide plays up to its next stop and waits there. By default the stops are the end of the slide; a stop beat in the scene (+1 stop), or stops= in the deck, adds more, so a chart comes in, then on a click the highlight, then the callout.
  • Keys. Right, Down, Space, Page Down, Enter and a left click go on to the next stop or slide. Left, Up and Page Up go back to the stop before, jumping there without playing. Home and End go to the first and last slide. Presenter clickers send Page Up and Page Down, so they work as they are. B or . blanks the screen.
  • Transitions between slides: the old slide's last frame goes out while the new one comes in. These use parin_kit's scene/transitions (fade, wipe, ...) where they fit.
  • Overview. A number in the corner (3 / 12) that can be turned off, and a key (G) for a grid of all slides as thumbnails to jump to.

Shared elements (nice to have)

When two slides in a row have an element with the same name and type (chart on both), it isn't hidden and shown again: it changes from the old one to the new one, the way change does within a scene. Its data, area and options move, so a chart can grow, move aside or re-sort across slides. This is like Keynote's Magic Move.

Export

  • Video. E exports the whole deck to exports/<deck>.mp4: every slide plays through with its transitions, and a stop waits pause= seconds (default 1.5) instead of a click. The audio of each scene goes along.
  • Stills. Each stop as a PNG (exports/<deck>/03-2.png), and optionally all of them as one PDF, for handouts and for people who want "the slides". Export at 1920x1080 and 3840x2160 (whole multiples of the 960x540 canvas).

The editor

  • A slide list on the left (or as a tab of the palette): the scenes of the deck as thumbnails.
  • Drag a slide to reorder it, + adds a new scene as a slide, and a click opens that slide in the editor.
  • Stops show as marks on the timeline, and a stop can be added at the playhead like the other beats.

Business look

With this, a theme for business graphics: calmer colors, a sans-serif look next to the pixel font, and slide templates (title slide, one chart with a key number, two charts side by side, a closing slide). These can be separate issues.

Questions

  • Do the slides of a deck share one data folder, or does each scene keep its own?
  • Does Left go back to the start of the slide, or to the stop before?
  • Can a deck also hold a single scene several times with different stops=?
Several scenes stitched together into a slide show, for business graphics: presentations with animated charts that play their beats when you click on, like the builds of a slide deck, and the same deck as one video. ## The deck file A deck is a text file like a scene, listing its slides in order: ``` # scenes/quarterly.deck theme = business.txt # one look for every slide (a scene's own theme still wins) transition = fade 0.4 # the default between slides: none, fade, slide, wipe, ... with seconds slide title.txt slide revenue.txt transition=slide slide regions.txt stops=2.5,6 # extra stops inside the slide slide outlook.txt ``` Each slide is an ordinary scene, so everything daviz can do already works on a slide, and a scene stays playable on its own. ## Presenting `dub run -- present quarterly` (or opening a `.deck` in the player) plays it fullscreen: - **Stops.** A slide plays up to its next stop and waits there. By default the stops are the end of the slide; a `stop` beat in the scene (`+1 stop`), or `stops=` in the deck, adds more, so a chart comes in, then on a click the highlight, then the callout. - **Keys.** Right, Down, Space, Page Down, Enter and a left click go on to the next stop or slide. Left, Up and Page Up go back to the stop before, jumping there without playing. Home and End go to the first and last slide. Presenter clickers send Page Up and Page Down, so they work as they are. B or `.` blanks the screen. - **Transitions** between slides: the old slide's last frame goes out while the new one comes in. These use parin_kit's `scene/transitions` (fade, wipe, ...) where they fit. - **Overview.** A number in the corner (`3 / 12`) that can be turned off, and a key (G) for a grid of all slides as thumbnails to jump to. ## Shared elements (nice to have) When two slides in a row have an element with the same name and type (`chart` on both), it isn't hidden and shown again: it changes from the old one to the new one, the way `change` does within a scene. Its data, area and options move, so a chart can grow, move aside or re-sort across slides. This is like Keynote's Magic Move. ## Export - **Video.** E exports the whole deck to `exports/<deck>.mp4`: every slide plays through with its transitions, and a stop waits `pause=` seconds (default 1.5) instead of a click. The audio of each scene goes along. - **Stills.** Each stop as a PNG (`exports/<deck>/03-2.png`), and optionally all of them as one PDF, for handouts and for people who want "the slides". Export at 1920x1080 and 3840x2160 (whole multiples of the 960x540 canvas). ## The editor - A slide list on the left (or as a tab of the palette): the scenes of the deck as thumbnails. - Drag a slide to reorder it, `+` adds a new scene as a slide, and a click opens that slide in the editor. - Stops show as marks on the timeline, and a stop can be added at the playhead like the other beats. ## Business look With this, a theme for business graphics: calmer colors, a sans-serif look next to the pixel font, and slide templates (title slide, one chart with a key number, two charts side by side, a closing slide). These can be separate issues. ## Questions - Do the slides of a deck share one data folder, or does each scene keep its own? - Does Left go back to the start of the slide, or to the stop before? - Can a deck also hold a single scene several times with different `stops=`?
Author
Owner

Split into M11 Slides: #59 deck files, #60 stops, #61 present mode, #62 transitions, #63 overview, #64 export, #65 editor slide list, #66 editor stops, #67 shared elements, #68 business look. The web side is M12 Web: #69-#75.

Answers to the questions, for now: each scene keeps its own data next to it (paths relative to the deck for slides, relative to the scene for data); Left goes to the stop before; a deck can hold a scene several times.

Split into M11 Slides: #59 deck files, #60 stops, #61 present mode, #62 transitions, #63 overview, #64 export, #65 editor slide list, #66 editor stops, #67 shared elements, #68 business look. The web side is M12 Web: #69-#75. Answers to the questions, for now: each scene keeps its own data next to it (paths relative to the deck for slides, relative to the scene for data); Left goes to the stop before; a deck can hold a scene several times.
Author
Owner

Built on the branch slides-and-web (not pushed yet):

  • Done: #59 decks, #60 stop beats, #61 present mode, #62 transitions (push/wipe wait for parin_kit#161), #63 overview, #64 video export of a deck (stills still missing), #65 editor slide list and Deck tab, #66 stops track.
  • Web: #69 web player (GC off on the web, parin_kit#162), #70 bundles (pack), #71/#72 website with accounts and uploads, #73 upload and editor Share, #74 live presenting (viewers poll instead of WebSocket, see server/README.md), #75 player page with fullscreen, touch and embed.
  • Not started: #67 shared elements, #68 business look.
Built on the branch `slides-and-web` (not pushed yet): - Done: #59 decks, #60 stop beats, #61 present mode, #62 transitions (push/wipe wait for parin_kit#161), #63 overview, #64 video export of a deck (stills still missing), #65 editor slide list and Deck tab, #66 stops track. - Web: #69 web player (GC off on the web, parin_kit#162), #70 bundles (pack), #71/#72 website with accounts and uploads, #73 upload and editor Share, #74 live presenting (viewers poll instead of WebSocket, see server/README.md), #75 player page with fullscreen, touch and embed. - Not started: #67 shared elements, #68 business look.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Weissstreifen/daviz#58
No description provided.