[][src]Struct fractal_gen::fractal::Fractal

pub struct Fractal {
    pub image: Img,
}

Fields

image: Img

Methods

impl Fractal[src]

pub fn new(pixels: Vec<Vec<Pixel>>) -> Fractal[src]

pub fn write_image(&self, path: &str)[src]

pub fn circle(&mut self, xc: usize, yc: usize, radius: u32, color: Pixel)[src]

pub fn multiple_circles(
    &mut self,
    xc: usize,
    yc: usize,
    radius: u32,
    number: u32,
    color: Pixel
)
[src]

pub fn koch_curve(
    &mut self,
    p1x: i32,
    p1y: i32,
    p2x: i32,
    p2y: i32,
    amount: u32,
    color: Pixel
)
[src]

pub fn triangle(&mut self, x: u32, y: u32, h: u32, color: Pixel)[src]

pub fn trianglev2(&mut self, x: u32, y: u32, h: u32, color: Pixel)[src]

pub fn sierpinski_triangle(&mut self, x: u32, y: u32, h: u32, color: Pixel)[src]

pub fn multiple_triangles(
    &mut self,
    x: u32,
    y: u32,
    h: u32,
    number: u32,
    color: Pixel
)
[src]

pub fn mandelbrot(&mut self, color: Pixel)[src]

pub fn rotate(&mut self)[src]

pub fn tree(
    &mut self,
    x: u32,
    y: u32,
    h: u32,
    angle: f64,
    growth: u32,
    color: Pixel
)
[src]

Auto Trait Implementations

impl RefUnwindSafe for Fractal

impl Send for Fractal

impl Sync for Fractal

impl Unpin for Fractal

impl UnwindSafe for Fractal

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.