equal
deleted
inserted
replaced
81 fn point() -> Point { |
81 fn point() -> Point { |
82 Point::new(rnd(WIDTH as i32), rnd(HEIGHT as i32)) |
82 Point::new(rnd(WIDTH as i32), rnd(HEIGHT as i32)) |
83 } |
83 } |
84 |
84 |
85 let mut land = Land2D::new(WIDTH as usize, HEIGHT as usize, 0); |
85 let mut land = Land2D::new(WIDTH as usize, HEIGHT as usize, 0); |
86 for i in 0..64 { |
86 for i in 0..32 { |
87 land.draw_thick_line(point(), point(), rnd(5), u32::max_value()); |
87 land.draw_thick_line(point(), point(), rnd(5), u32::max_value()); |
|
88 |
|
89 land.fill_circle(point(), rnd(60), u32::max_value()); |
88 } |
90 } |
89 |
91 |
90 fill_texture(&mut land_surf, &land); |
92 fill_texture(&mut land_surf, &land); |
91 |
93 |
92 let mut win_surf = window.surface(&pump).unwrap(); |
94 let mut win_surf = window.surface(&pump).unwrap(); |