alpha-blend

Crates.ioalpha-blend
lib.rsalpha-blend
version0.1.2
created_at2025-07-19 01:56:34.931345+00
updated_at2025-07-19 15:47:16.717694+00
descriptionAlpha blending and compositing
homepage
repositoryhttps://github.com/crates-lurey-io/alpha-blend
max_upload_size
id1759859
size60,331
admins (github:crates-lurey-io:admins)

documentation

README

alpha-blend

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

Test Docs Crates.io Version codecov

Examples

cargo run --example porter-duff --features bytemuck

BlendMode::Clear

BlendMode::Source

BlendMode::Destination

BlendMode::SourceOver

BlendMode::DestinationOver

BlendMode::SourceIn

BlendMode::DestinationIn

BlendMode::SourceOut

BlendMode::DestinationOut

BlendMode::SourceAtop

BlendMode::DestinationAtop

BlendMode::Xor

BlendMode::Plus

Contributing

This project uses just to run commands the same way as the CI:

  • cargo just check to check formatting and lints.
  • cargo just coverage to generate and preview code coverage.
  • cargo just doc to generate and preview docs.
  • cargo just test to run tests.

For a full list of commands, see the Justfile.

Commit count: 0

cargo fmt