sciart-core 0.7.0

Internal: terminal-agnostic primitives of sciart (canvas, generator trait, fixed-step clock). No semver promise; use the `sciart` crate
Documentation
//! **Internal crate of [`sciart`](https://docs.rs/sciart)**, with no semver promise: its API
//! can change in any release. Use the `sciart` crate, the supported entry point.
//!
//! Terminal-agnostic primitives for sciart (SPEC-001).
//!
//! Nothing in this crate touches the terminal, the OS, the wall clock or a global RNG:
//! generators built on it are deterministic and testable in isolation.

mod canvas;
mod clock;
mod ctx;
pub mod draw;
mod generator;
pub mod geom;
pub mod grid;
pub mod ink;
pub mod ode;
pub mod particles;
pub mod raster;
pub mod rng;
mod size;
mod stage;
pub mod stellar;
pub mod text;
pub mod timeline;
pub mod title;
pub mod trig;

pub use canvas::{Canvas, Cell, Glyph, GlyphMode};
pub use clock::FixedStep;
pub use ctx::Ctx;
pub use generator::{Category, Generator, Meta};
pub use geom::{Camera, Projector};
pub use grid::{CubicRow, Edges, Grid, Hood, MapRow, SampleMap};
pub use ink::{Ink, Ramp, Role};
pub use particles::{InverseCdf, ParticlePool, SpatialHash, Trail};
pub use raster::{Density, Dots, Glow, Pixels, Tone};
pub use rng::SplitMix64;
pub use size::Size;
pub use stage::Stage;
pub use text::StackText;
pub use timeline::{Beat, Timeline, ease};
pub use trig::Trig;

/// Simulation step used by the runtime (ADR-0003).
pub const SIM_DT: f64 = 1.0 / 60.0;

/// Everything a generator module needs: `use sciart_core::prelude::*;`
pub mod prelude {
    pub use crate::{
        Beat, Camera, Canvas, Category, Cell, Ctx, Density, Dots, Edges, FixedStep, Generator,
        Glow, Glyph, GlyphMode, Grid, Hood, Ink, InverseCdf, Meta, ParticlePool, Pixels, Projector,
        Ramp, Role, SIM_DT, SampleMap, Size, SpatialHash, SplitMix64, StackText, Stage, Timeline,
        Trail, Trig,
    };
}