Expand description
§Overview
This crate provides functionality to overlay pride flags onto images. You can either Overlay a flag directly onto an image with adjustable opacity, or draw a Ring around the image using the flag’s colours, or create your own custom effects using the provided Flag type and Effect trait.
| Input | Overlay | Ring |
|---|---|---|
![]() | ![]() | ![]() |
§High level API
Load an image with the image crate, and Overlay the Transgender flag with 40% opacity.
use pride_overlay::prelude::*;
let mut image = image::open("path/to/image.webp")?;
let effect = Overlay::builder(PresetFlag::Transgender).opacity(Opacity::new(0.4)).build();
effect.apply(&mut image);Modules§
- effects
- Built-in image effects and related types.
- flags
- Built-in pride flags and related types.
- prelude
- Commonly used types and traits.
Structs§
- Colour
- Represents a colour in RGB format.


