1 image
This commit is contained in:
		
							parent
							
								
									08874882ec
								
							
						
					
					
						commit
						970bb5187a
					
				
					 1 changed files with 0 additions and 15 deletions
				
			
		
							
								
								
									
										15
									
								
								src/main.rs
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								src/main.rs
									
										
									
									
									
								
							| 
						 | 
					@ -167,26 +167,11 @@ impl Display {
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					 | 
				
			||||||
    /// Clears the entire screen to black.
 | 
					 | 
				
			||||||
    #[allow(dead_code)]
 | 
					 | 
				
			||||||
    fn blank_screen(&mut self) {
 | 
					 | 
				
			||||||
        for x in 0..DISPLAY_WIDTH {
 | 
					 | 
				
			||||||
            for y in 0..DISPLAY_HEIGHT {
 | 
					 | 
				
			||||||
                self.set_pixel(x as u16, y as u16, 0, 0, 0);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        self.flush_frame();
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fn main() {
 | 
					fn main() {
 | 
				
			||||||
    let mut images = vec![
 | 
					    let mut images = vec![
 | 
				
			||||||
        BouncingImage::new("images/unicorn_cc.png", 13, -10, 1, -1, -1),
 | 
					        BouncingImage::new("images/unicorn_cc.png", 13, -10, 1, -1, -1),
 | 
				
			||||||
        BouncingImage::new("images/windows_logo.png", -8, 3, 2, -1, -1),
 | 
					 | 
				
			||||||
        BouncingImage::new("images/spade.png", 32, -12, 1, 0, 0),
 | 
					 | 
				
			||||||
        BouncingImage::new("images/dvdvideo.png", 20, 6, 5, 1000, 800),
 | 
					 | 
				
			||||||
        BouncingImage::new("images/hackaday.png", 40, 18, 3, 500, 800),
 | 
					 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let mut display = Display::new(DISPLAY_HOST, DISPLAY_PORT);
 | 
					    let mut display = Display::new(DISPLAY_HOST, DISPLAY_PORT);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue