Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. public void createCollage()
  2. {
  3. Picture flag = new Picture("American flag.jpg");
  4. Picture huntington = new Picture("thomas.jpg");
  5. Picture sehome = new Picture ("sehome.jpg");
  6.  
  7. Picture redSehome = new Picture(sehome);
  8. redSehome.onlyRed();
  9. Picture blueSehome = new Picture(sehome);
  10. blueSehome.onlyBlue();
  11. Picture greenSehome = new Picture(sehome);
  12. greenSehome.onlyGreen();
  13.  
  14. this.copy(huntington,0,0);
  15. this.copy(blueSehome,350,0);
  16. this.copy(greenSehome,170,0);
  17.  
  18. this.copy(redSehome,0,0);
  19. this.copy(flag,275,200);
  20. this.mirrorVertical();
  21. this.write("collage.jpg");
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement