Sample Code Page
- Code from Lecture 11/30/09
- Code from Lecture 11/23/09
- Code from Lecture 11/18/09
- Code from Lecture 11/16/09
- Code from Lecture 11/11/09
- Code from Lecture 11/2/09
- Code from Lecture 10/28/09
- Code from Lecture 10/26/09
- Lect1026a.java Mirror the left side of a Picture onto the right side
- Lect1026b.java Mirror the top half of a picture onto the bottom half
- Lect1026c.java Mirror the upper left quarter of a picture onto the the other 3 quarters
- Lect1026d.java Repeat the left third of a picture 3 times
- Lect1026e.java Repeat the left fifth of a picture 5 times (using a nested loop)
- Lect1026f.java Using the Media Directory information stored in DrJava, hard code in the name of 2 files
- Lect1026g.java Select files from the same directory as was chosen using the FileChooser.pickAFile() method
- Code from Lecture 10/21/09
- Code from Lecture 10/19/09
- Code from Lecture 10/14/09
- Code from Lecture 10/12/09
- Code from Lecture 10/7/09
- Lect107a.java Using a Method to create the fake sunset
- Lect107b.java Darken an images similar to the Color.darken() method
- Lect107c.java Create a color negative
- Lect107d.java Calls makeNegative() twice to return to the original picture
- Lect107e.java Does a strange modification (that seems to result in green and purple pictures)
- Lect107f.java Create a grayscale image using the average red, green and blue values
- Lect107g.java Create a grayscale image using a weighted average for red (~30%), green (~60%) and blue (~10%)
- Lect107h.java Create a new weighted grayscale image instead of modifying the original image
- Code from Lecture 10/5/09
- Lect105a.java Prompt for, Brighten all Colors and Display a Picture
- Lect105b.java Create a fake sunset by increasing the red in all pixels in a picture
- Lect105c.java Create a fake sunset by decreasing the green and blue in all pixels in a picture
- Code from Lecture 9/23/09
- Lect923a.java Using a random number to determine how a turtle turns
- Code from Lecture 9/21/09
- Code from Lecture 9/16/09
- Code from Lecture 9/14/09
- Code from Lecture 9/9/09
- Code from Lecture 9/7/09
- Code from Lecture 9/2/09