Struct kolor::details::color::Color [−][src]
pub struct Color { pub value: Vec3, pub space: ColorSpace, }
Expand description
Color is a 3-component vector defined in a ColorSpace.
Fields
value: Vec3
space: ColorSpace
Implementations
Equivalent to Color::new(x, y, z, kolor::spaces::ENCODED_SRGB)
Returns a Color with this color converted into the provided ColorSpace.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more