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
11
12
13
14
#[repr(C)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
/// An `ABGR` pixel.
pub struct Abgr<T> {
    /// Alpha Component
    pub a: T,
    /// Blue Component
    pub b: T,
    /// Green Component
    pub g: T,
    /// Red Component
    pub r: T,
}