rust_ppm/lib.rs
1#![doc = include_str!("../README.md")]
2#![forbid(unsafe_code)]
3#![warn(missing_docs)]
4
5//! `rust-ppm` is a small RGB image and plotting library for generating binary PPM files.
6//! It combines low-level image operations with a compact plotting API for quick visualization.
7
8/// Image primitives and helpers.
9pub mod image;
10pub use image::{Image, Pixel};
11
12/// Plot builders, axes, and rendering utilities.
13pub mod plot;
14
15/// Binary PPM input/output support.
16pub mod ppm;
17
18pub use plot::{
19 Axes, LineStyle, MarkerStyle, Plot, line_plot, line_plot_with_width,
20 line_plot_with_width_and_inset, scatter_plot, scatter_plot_with_size,
21 scatter_plot_with_size_and_inset,
22};
23
24/// Backward-compatible re-export module for plot helpers.
25#[allow(missing_docs)]
26pub mod ppmplot {
27 pub use crate::plot::*;
28}