pub const GATHER: f32 = 1.0; // 0 is this listing, 1 the body
pub const MATERIAL: Material = Material::Plain;
pub const TURN: bool = false;
pub const SEED: u32 = 26;
// Body (the home page, `/`): a stone whose surface is the text of this file, set in lines round it
// like latitude rings, lit by a lamp that follows the pointer. Written only against amenui's public
// API: text elements whose glyphs are posed (`El::pose`), drawings for the dots behind and over it,
// springs for the motion.
//
// - The four lines above are the console: in 02 they close into four controls where they stand.
// GATHER scrubs this listing onto the stone and back, MATERIAL draws one word in a material (03),
// TURN lets the stone turn by itself, SEED cuts another stone. The scene starts from their values.
// - The text is the first 2,700 characters of this file, ending at a line end (1,400 on a small body).
// - The listing fills a stage rectangle the host gives (`set_stage`): 14 px lines, as many of the
// text's lines as fit above the caption, each cut at the last whole word that fits. The web page
// draws the same listing in HTML while the module loads, at the same pixels.
// - Glyph i of the text under the console sits in one cell of a spiral on the surface; spaces take a
// cell. The glyph size is the one at which the text fills the surface.
// - The lamp is a point light: opacity keeps the text legible everywhere, the colour carries the light.
// - A drag turns the stone about its upright axis, 1:1 at its middle, and tips it a little; let go,
// it settles upright. At rest nothing is drawn.
use amenui::draw::Drawing;
use amenui::el::{El, Font, GlyphAt, Key, Paint, Phase, Point, Pose, Reveal, Role, canvas, layers, space, text_lh};
use amenui::experiment::Experiment;
use amenui::field::hash;
use amenui::form::FormFx;
use amenui::gesture::{Animated, Spring};
use amenui::style::Material;
use std::cell::RefCell;
use std::rc::Rc;
/// This file: the text on the body.
pub const SOURCE: &str = include_str!("body.rs");
/// The listing's size (Departure Mono's native 11 px) and that face's advance at it (350 / 550 em).
pub const SIZE: f32 = 11.0;
pub const ADVANCE: f32 = 7.0;
/// Marks in the body's volume (the far shell and the inside), asked of the frame budget.
pub const VOLUME: usize = 1_500;
pub const MOTE_LIFE: f32 = 1.6;
/// How much of this file the body is made of (characters, spaces included, cut at a line end), and
/// on a small body (the phone).
pub const CHARS: usize = 2_700;
pub const CHARS_SMALL: usize = 1_400;
/// On a phone the text is cut to what the body can show in glyphs drawn at least `PHONE_GLYPH` px tall