Crate alpha_blend

Source
Expand description

Alpha blending and compositing in (optionally) zero-dependency Rust.

§Features

By default, this crate is no_std compatible, and uses libm for some math operations.

§std

Uses the standard library for math operations, such as f32::round.

Removes the dependency on libm.

§bytemuck

Enables the bytemuck crate for zero-copy conversions between types.

§libm-arch

This feature is enabled by default if std is not enabled.

Enables the arch feature of libm.

Modules§

porter_duff
Alpha blending using Porter-Duff coefficients.
rgba
RGBA color representation.

Enums§

BlendMode
Supported blend modes by this crate.

Traits§

RgbaBlend
Blends pixel colors using alpha compositing.