pixeli 0.2.1

This crate provides common pixel types and traits for working with them.
Documentation
1
2
3
4
5
6
7
8
9
10
#[repr(C)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
/// A `Grayscale + Alpha` pixel.
pub struct GrayAlpha<T> {
    /// Grayscale Component
    pub gray: T,
    /// Alpha Component
    pub a: T,
}