Skip to main content

clairlune_scene/
lib.rs

1//! Deterministic scene generation for Clairlune.
2//!
3//! `seed -> SceneRecipe -> SceneGraph`. This crate is pure: no OS calls, no I/O,
4//! no clocks. The same inputs give byte-identical outputs on every platform, which
5//! is why it uses its own stable hashing, ChaCha8 as a raw bit source with
6//! hand-written integer sampling, and `libm` for transcendental functions.
7
8/// Compiles the README example as a doctest so it can't go stale.
9#[cfg(doctest)]
10#[doc = include_str!("../README.md")]
11struct ReadmeDoctests;
12
13pub mod activity;
14pub mod anim;
15pub mod archetype;
16pub mod build;
17pub mod compose;
18pub mod focal;
19pub mod glyphs;
20pub mod graph;
21pub mod hash;
22pub mod ident;
23pub(crate) mod local_weather;
24pub(crate) mod look;
25pub mod math;
26pub mod noise;
27pub mod palette;
28pub mod particles;
29pub mod placeholder;
30pub mod recipe;
31pub mod rng;
32pub(crate) mod terrain;
33
34pub use activity::{Activity, Catalog};
35pub use build::{BuildError, BuildOptions, build, build_with};
36pub use compose::compose;
37pub use graph::{
38    Cell, CharacterTrack, GridSpec, Journey, Lighting, Motion, SceneGraph, ScrollLayer,
39    SpriteInstance, SpriteKind, grid_spec,
40};
41pub use ident::{APP_ID, APP_NAME};
42pub use palette::{PaletteFamily, Rgb, Theme};
43pub use recipe::{
44    Aspect, ContentContext, GENERATOR_VERSION, SceneRecipe, TimeOfDay, ZOOMS, zoom_factor,
45};