Update lines from top to bottom for a more natural ordering

This commit is contained in:
Juergen Stuber 2024-11-08 17:39:00 +01:00
parent 8a56990cff
commit 47cfb1dcce

View File

@ -209,7 +209,7 @@ fn main() -> Result<()> {
let mut new_frame = Frame::new(bbox); let mut new_frame = Frame::new(bbox);
let mut new_visible_primes = (0..lines).map(|_| Vec::new()).collect::<Vec<_>>(); let mut new_visible_primes = (0..lines).map(|_| Vec::new()).collect::<Vec<_>>();
for i in 0..lines { for i in (0..lines).rev() {
let mut pos = start_positions[i]; let mut pos = start_positions[i];
// Render the primes that are already visible. // Render the primes that are already visible.