mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-22 23:40:45 +01:00
The Levels effect's properties now show a histogram of its input, the
mask below it or (on layer content) a channel picked above it, with the
input range marked. effect.histogram {effect, channel?, bins?} gives
agents the same counts. Large sets are sampled (at most 256 tiles), so
the cost stays flat up to 8K.
23 lines
991 B
Rust
23 lines
991 B
Rust
//! # texturecraft-compose
|
|
//!
|
|
//! The CPU layer-stack evaluator: [`eval::composite_tiles`] turns a texture set's layers, masks,
|
|
//! fills and painted pixels into one image per channel, tile by tile in parallel, including the
|
|
//! live preview of a stroke being drawn. [`display`] converts composited tiles into the texture
|
|
//! formats the viewport samples; [`pattern`] evaluates procedurals through projections.
|
|
#![forbid(unsafe_code)]
|
|
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
|
|
pub mod below;
|
|
pub mod display;
|
|
pub mod eval;
|
|
pub mod pattern;
|
|
pub mod store;
|
|
|
|
pub use below::{BelowCache, StackKey};
|
|
pub use display::{DisplayKind, tile_bytes};
|
|
pub use eval::{
|
|
Composite, Inputs, PaintTarget, Stencil, StrokePreview, all_tiles, composite_tiles, composite_tiles_cached, covered_tiles, effect_histogram, flatten_layer,
|
|
mask_image, pad_tiles,
|
|
};
|
|
pub use store::{BakedMaps, ImageRes, ImageStore, PixelStore};
|