Struct pxl::Pixel[][src]

#[repr(C)]
pub struct Pixel { pub red: f32, pub green: f32, pub blue: f32, pub alpha: f32, }

An RGBA pixel. Components should normally be between 0.0 and 1.0 inclusive.

Fields

The red component

The green component

The blue component

The alpha component. Currently ignored, but in the future, pixels rendered with an alpha value of less than 1.0 may be transparent, exposing the desktop or window behind the pxl window.

Trait Implementations

impl Copy for Pixel
[src]

impl Clone for Pixel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Pixel
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Pixel
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Pixel

impl Sync for Pixel