pub enum ColorDist {
Constant([f32; 3]),
UniformBox {
min: [f32; 3],
max: [f32; 3],
},
}Expand description
RGB color distribution. Channel values are in linear [0.0, 1.0].
Variants§
Constant([f32; 3])
Always returns the same color.
UniformBox
Uniform inside an RGB axis-aligned box.
Implementations§
Trait Implementations§
impl Copy for ColorDist
impl StructuralPartialEq for ColorDist
Auto Trait Implementations§
impl Freeze for ColorDist
impl RefUnwindSafe for ColorDist
impl Send for ColorDist
impl Sync for ColorDist
impl Unpin for ColorDist
impl UnsafeUnpin for ColorDist
impl UnwindSafe for ColorDist
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