mirror of
https://github.com/Noratrieb/mandelbrot-rust.git
synced 2026-01-14 15:25:07 +01:00
idk
This commit is contained in:
parent
6af99b1989
commit
ea468cdf1b
2 changed files with 2 additions and 2 deletions
BIN
img.png
BIN
img.png
Binary file not shown.
|
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 124 KiB |
|
|
@ -142,6 +142,7 @@ fn draw(values: &Vec<Vec<u32>>, iterations: u32) -> String {
|
|||
}
|
||||
|
||||
static BAR_SIZE: usize = 50;
|
||||
|
||||
fn progress_bar(progress: f64) -> String {
|
||||
let mut bar = String::from("[");
|
||||
let bar_amount = (BAR_SIZE as f64 * progress).round() as usize;
|
||||
|
|
@ -369,7 +370,6 @@ mod tests {
|
|||
let out = draw(vector, 10);
|
||||
println!("{}", out);
|
||||
assert_eq!(out, " ###
|
||||
###
|
||||
")
|
||||
###")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue