pub struct SceneStop {
pub offset: f32,
pub color: [f32; 4],
}Expand description
One stop of a scene paint: its offset and straight, sRGB-encoded color.
Fields§
§offset: f32Position along the gradient, in 0..=1.
color: [f32; 4]Straight sRGB color and alpha.
Trait Implementations§
impl Copy for SceneStop
impl StructuralPartialEq for SceneStop
Auto Trait Implementations§
impl Freeze for SceneStop
impl RefUnwindSafe for SceneStop
impl Send for SceneStop
impl Sync for SceneStop
impl Unpin for SceneStop
impl UnsafeUnpin for SceneStop
impl UnwindSafe for SceneStop
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