Struct text_utils::Color [−][src]
Expand description
Color in rgba format, where {red,green,blue} in 0..255, alpha in 0.0..1.0
Fields
r: u8red channel, ranges from 0 to 255
g: u8green channel, ranges from 0 to 255
b: u8blue channel, ranges from 0 to 255
a: f32alpha channel, ranges from 0.0 to 1.0
Trait Implementations
Parses CSS3 color strings into rgba Color. Handles all errors to avoid any panic!s
type Err = ColorParseError
type Err = ColorParseError
The associated error which can be returned from parsing.
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more
