pub struct IfsSystem {
pub transforms: Vec<AffineTx>,
pub name: String,
}Expand description
An Iterated Function System.
Fields§
§transforms: Vec<AffineTx>§name: StringImplementations§
Source§impl IfsSystem
impl IfsSystem
Sourcepub fn render(&self, iterations: u32, seed: u64) -> IfsFractal
pub fn render(&self, iterations: u32, seed: u64) -> IfsFractal
Run the chaos game for iterations steps.
Sourcepub fn barnsley_fern() -> Self
pub fn barnsley_fern() -> Self
Barnsley fern preset.
Sourcepub fn sierpinski() -> Self
pub fn sierpinski() -> Self
Sierpinski triangle preset.
Sourcepub fn sierpinski_carpet() -> Self
pub fn sierpinski_carpet() -> Self
Sierpinski carpet.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IfsSystem
impl RefUnwindSafe for IfsSystem
impl Send for IfsSystem
impl Sync for IfsSystem
impl Unpin for IfsSystem
impl UnsafeUnpin for IfsSystem
impl UnwindSafe for IfsSystem
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