Struct pixels_graphics_lib::color::Color [−][src]
Expand description
This represents an RGBA color and is used to store a pixel by Image and PixelsWrapper
Fields
r: u8g: u8b: u8a: u8Implementations
Converts 0.0..=1.0 to 0..=255 Values outside 0.0..=1.0 are clamped
Create a new color with red, green and blue set to value and alpha set to 255
Convert an i32 into a Color where bytes match the format [R,G,B,A]
Convert f32 array in the format [R,G,B,A] to color where 0.0 = 0, and 1.0 = 255
Convert color to f32 array in the format [R,G,B,A] where 0.0 = 0, and 1.0 = 255
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more
