module

MJ::Flipbook

Flipbook: lay out the frames already made, put them in an order, and play them, so a person can see which pictures move into one another cleanly and say which are unusable.

A frame is any folder under the Outtake root holding a keyed prop.png drawn on the shared stage (848x1264 for the Bard), so frames line up when played. Each frame gets a number the first time it's seen and keeps it, so it can be referred to by number. What the person decides (unusable frames, notes, named sequences) is saved in the Outtake root's flipbook.json, where an agent can read it.

Constants

SIZES = {"thumb" => 150, "view" => 600}
SLUG = "flipbook"
TITLE = "Flipbook"

Class methods

cache_dir
Source
frames
Source
load_state
Source
path_of(n : Int64) : String | Nil

The path of frame n, from a listing at most a few seconds old: thumbnails come in by the hundred, and each needn't scan the folders again.

Source
register
Source
root

The frames live in the project's Outtake/, next to where mj is served from.

Source
save_state(h : Hash(String, JSON::Any))
Source
slug
Source
state_path
Source
title
Source