Enum nobject_rs::ColorType
source · pub enum ColorType {
Rgb(f32, f32, f32),
Spectral(String, f32),
CieXyz(f32, f32, f32),
}
Expand description
An enum for possible ways of specifying a material color
Variants§
Rgb(f32, f32, f32)
RGB
Spectral(String, f32)
Reflectivity using a spectral curve. This is specified as a filename and a multiplier (defaults to 1.0)
CieXyz(f32, f32, f32)
CIEXYZ color space
Trait Implementations§
source§impl PartialEq for ColorType
impl PartialEq for ColorType
impl StructuralPartialEq for ColorType
Auto Trait Implementations§
impl Freeze for ColorType
impl RefUnwindSafe for ColorType
impl Send for ColorType
impl Sync for ColorType
impl Unpin for ColorType
impl UnwindSafe for ColorType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more