pub enum FlowSource {
Curl {
seed: u32,
frequency: f64,
},
Image {
image: Arc<ImageAsset>,
bounds: Rect,
},
}Expand description
Immutable source for an evolving velocity field.
Variants§
Curl
Two-dimensional curl of the shared analytic Perlin potential.
Image
Red/green channels interpreted as a normalized vector map.
Fields
§
image: Arc<ImageAsset>Immutable premultiplied material whose straight RG encodes vectors.
Trait Implementations§
Auto Trait Implementations§
impl Forget for FlowSource
impl Freeze for FlowSource
impl Move for FlowSource
impl RefUnwindSafe for FlowSource
impl Send for FlowSource
impl Sync for FlowSource
impl Unpin for FlowSource
impl UnsafeUnpin for FlowSource
impl UnwindSafe for FlowSource
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