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
#[repr(C)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
/// A `Grayscale` pixel.
pub struct Gray<T> {
    /// Grayscale Component
    pub gray: T,
}