[−][src]Struct fractal_gen::fractal::Fractal
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]
&mut self,
xc: usize,
yc: usize,
radius: u32,
number: u32,
color: Pixel
)
pub fn koch_curve(
&mut self,
p1x: i32,
p1y: i32,
p2x: i32,
p2y: i32,
amount: u32,
color: Pixel
)
[src]
&mut self,
p1x: i32,
p1y: i32,
p2x: i32,
p2y: i32,
amount: u32,
color: Pixel
)
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]
&mut self,
x: u32,
y: u32,
h: u32,
number: u32,
color: Pixel
)
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]
&mut self,
x: u32,
y: u32,
h: u32,
angle: f64,
growth: u32,
color: Pixel
)
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,