Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void createCollage()
- {
- Picture flag = new Picture("American flag.jpg");
- Picture huntington = new Picture("thomas.jpg");
- Picture sehome = new Picture ("sehome.jpg");
- Picture redSehome = new Picture(sehome);
- redSehome.onlyRed();
- Picture blueSehome = new Picture(sehome);
- blueSehome.onlyBlue();
- Picture greenSehome = new Picture(sehome);
- greenSehome.onlyGreen();
- this.copy(huntington,0,0);
- this.copy(blueSehome,350,0);
- this.copy(greenSehome,170,0);
- this.copy(redSehome,0,0);
- this.copy(flag,275,200);
- this.mirrorVertical();
- this.write("collage.jpg");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement