|
|
@ -1,4 +1,3 @@
|
|
|
|
extern crate num;
|
|
|
|
|
|
|
|
use num::Complex;
|
|
|
|
use num::Complex;
|
|
|
|
|
|
|
|
|
|
|
|
/// Try to determine if `c` is in the Mandelbrot set, using at most `limit`
|
|
|
|
/// Try to determine if `c` is in the Mandelbrot set, using at most `limit`
|
|
|
@ -127,8 +126,6 @@ fn render(pixels: &mut [u8],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
extern crate image;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use image::ColorType;
|
|
|
|
use image::ColorType;
|
|
|
|
use image::png::PNGEncoder;
|
|
|
|
use image::png::PNGEncoder;
|
|
|
|
use std::fs::File;
|
|
|
|
use std::fs::File;
|
|
|
|