lib.rs
1.9 kB · rust · 61 lines
1#![doc = include_str!("../README.md")]2#![deny(missing_docs)]34/// Ready-made tensors: zeros, ones, noise and carpets in two or three dimensions.5pub mod atoms;6/// The cell grid: type bytes with optional per-cell colors and tags.7pub mod cell;8/// The ChaCha8 keystream, a seekable source of random words.9pub mod chacha;10/// The png and gif codecs, rented from the png and gif crates.11pub mod codec;12/// The rgba color and its palettes.13pub mod colors;14/// The well: how a crate declares the datasets it can pour.15pub mod data;16/// The ways paint picks a color within a type's palette.17pub mod enums;18/// The one error type and its Result.19pub mod errors;20/// The paletted image and its rows.21pub mod image;22/// The road from type bytes through a colorizer to rgba pixels.23pub mod io;24/// The json parser over the rented serde_json value.25pub mod json;26/// The natural logarithm, written from a series.27pub mod logs;28/// The editions that distribute a palette over a cell.29pub mod paint;30/// The generated palette: the fifteen colors, written by utils/colors.py.31pub mod palette;32/// The colorizers that turn counter values into colors.33pub mod ramp;34/// The pixel resamplers and the hex squash.35pub mod resample;36/// The seeded, seekable random stream.37pub mod rng;38/// The global random state: seed once, every draw replays.39pub mod state;40/// The tensor and its dtypes.41pub mod tensor;42/// The tile families, groups and parities.43pub mod tile;44/// Table trig: one turn in a fixed count of samples.45pub mod trig;4647pub use cell::Cell;48pub use codec::{gif, png, unpng};49pub use colors::Color;50pub use enums::Mode;51pub use errors::{MrlyError, Result};52pub use image::Image;53pub use ramp::Colorizer;54pub use resample::{hex_fit, hex_size, resample, Filter};55pub use rng::Rng;56pub use serde_json::{json, Value as Json};57pub use tensor::{Dtype, Tensor};58pub use tile::{Base, Group, Parity, Tile};5960/// An object's entries, kept in insertion order.61pub type Map = serde_json::Map<String, Json>;