TWiki> CS111 Web>CS111Fall2013>CodeF13 (2013-12-03, Main.troy)

CS 111 - Program Design I

Code Samples: Fall 2013

Sound Examples - Most recent examples at the top
Picture Examples - Most recent examples at the top

• Lect1105a.java: Code to open up multiple picture files using only a single pickAFile() call as needed for Project 3
• Lect1031e.java: Green-screen chromakey designed to work with
• Lect1031d.java: Blue-screen chromakey designed to work with
• Lect1031c.java: Crop a picture
• Lect1031b.java: Call the make collage method twice
• Lect1031a.java: Make a collage of two pictures
• Lect1029f.java: Change a pictures size by a given percent
• Lect1029e.java: Enlarge a picture by two times
• Lect1029d.java: Reduce the size of a picture by half
• Lect1029c.java: Rotate a picture 90 degrees clockwise
• Lect1029b.java: Flip a mirror image from top to bottom
• Lect1029a.java: Flip a picture from top to bottom
• Lect1024g.java: Duplicate side-by-side, first mirrored, second same as original
• Lect1024f.java: Create a mirror image of a picture
• Lect1024e.java: Flip a picture and duplicate side-by-side
• Lect1024d.java: Flip a picture along its main diagonal
• Lect1024c.java: Duplicate side-by-side-by-side
• Lect1024b.java: Duplicate side-by-side
• Lect1024a.java: Edge Detection
• Lect1022c.java: Removing red eye from picture jenny-red.jpg
• Lect1022b.java: Creata a 4 color posterized picture using only if-then clauses with complex conditions
• Lect1022a.java: Create a 4 color posterized picture "inverting" the conditions used from Lect1017f.java
• Lect1017f.java: Create a 4 color posterized picture: black, green, blue cyan
• Lect1017e.java: Create a two color posterized picture: pink and orchid
• Lect1017d.java: Create a posterized picture: Black or White
• Lect1017c.java: Creating a Black "through Green" to White picture using one if-else statement
• Lect1017b.java: Creating a Black "through Green" to White picture using two if statements
• Lect1017a.java: Merge two pictures together into one. The first picture fades out from left to right. The second picture fades in from left to right.
• Lect1015a.java: Merge two pictures together into one. Each pixel contains equal amounts of information from each original pixel
• Lect1010f.java: Creating a Black and White picture using the weighted average calculations
• Lect1010e.java: Creating a Black and White picture using a corrected average calculation
• Lect1010d.java: Attempting to create a Black and White image but using a flawed average calculation
• Lect1010c.java: Create a Fake Sunset by decreasing the Green and Blue amounts at each pixel
• Lect1010b.java: Create a Fake Sunset by increasing the Red amount of each pixel
• Lect1010a.java: Creating a color negative with code in a method
• Lect1008f.java: Creating a color negative
• Lect1008e.java: Example removing the green color from all pixels in a picture
• Lect1008d.java: Example darkening all pixels in a picture - This uses FOR loops
• Lect1008c.java: Example brightening all pixels in a picture
• Lect1008b.java: Example showing nested loops to allow access to all "pixel" coordinates
• Lect1008a.java: Example showing width access, height access and adding a message
• Lect0926a.java: Selecting and Exploring a picture
Simple Java Examples

Turtle Examples
Topic attachments
I Attachment Action Size Date Who Comment
jpg batmanGreenScreen.jpg manage 12.1 K 2013-10-31 - 16:57 UnknownUser
jpg blue-mark.jpg manage 59.7 K 2013-10-31 - 16:57 UnknownUser
jpg jenny-red.jpg manage 94.4 K 2013-10-22 - 18:32 UnknownUser
java Lect0905a.java manage 1.0 K 2013-09-05 - 16:02 UnknownUser
java Lect0905b.java manage 1.0 K 2013-09-10 - 16:11 UnknownUser
java Lect0910a.java manage 0.7 K 2013-09-10 - 16:11 UnknownUser
java Lect0910b.java manage 0.9 K 2013-09-10 - 16:11 UnknownUser
java Lect0912a.java manage 1.4 K 2013-09-12 - 16:27 UnknownUser
java Lect0912b.java manage 1.5 K 2013-09-12 - 16:27 UnknownUser
java Lect0917a.java manage 0.9 K 2013-09-17 - 17:58 UnknownUser
java Lect0917b.java manage 1.7 K 2013-09-17 - 17:58 UnknownUser
java Lect0917c.java manage 2.1 K 2013-09-17 - 17:58 UnknownUser
java Lect0917d.java manage 2.2 K 2013-09-17 - 17:58 UnknownUser
java Lect0917e.java manage 1.8 K 2013-09-17 - 17:58 UnknownUser
java Lect0919a.java manage 1.9 K 2013-09-19 - 15:57 UnknownUser
java Lect0919b.java manage 2.0 K 2013-09-19 - 15:57 UnknownUser
java Lect0919c.java manage 3.1 K 2013-09-19 - 15:57 UnknownUser
java Lect0919d.java manage 2.9 K 2013-09-19 - 15:57 UnknownUser
java Lect0924a.java manage 3.5 K 2013-09-24 - 16:14 UnknownUser
java Lect0924b.java manage 3.2 K 2013-09-24 - 16:14 UnknownUser
java Lect0924c.java manage 3.0 K 2013-09-24 - 16:15 UnknownUser
java Lect0924d.java manage 4.1 K 2013-09-26 - 17:23 UnknownUser
java Lect0926a.java manage 3.7 K 2013-09-26 - 17:24 UnknownUser
java Lect1008a.java manage 1.2 K 2013-10-08 - 16:33 UnknownUser
java Lect1008b.java manage 0.9 K 2013-10-08 - 16:33 UnknownUser
java Lect1008c.java manage 1.7 K 2013-10-08 - 16:33 UnknownUser
java Lect1008d.java manage 1.7 K 2013-10-08 - 16:33 UnknownUser
java Lect1008e.java manage 1.8 K 2013-10-08 - 16:33 UnknownUser
java Lect1008f.java manage 1.9 K 2013-10-08 - 16:33 UnknownUser
java Lect1010a.java manage 1.8 K 2013-10-10 - 16:19 UnknownUser
java Lect1010b.java manage 1.8 K 2013-10-10 - 16:19 UnknownUser
java Lect1010c.java manage 1.8 K 2013-10-10 - 16:19 UnknownUser
java Lect1010d.java manage 1.9 K 2013-10-10 - 16:20 UnknownUser
java Lect1010e.java manage 1.9 K 2013-10-10 - 16:20 UnknownUser
java Lect1010f.java manage 3.0 K 2013-10-10 - 16:20 UnknownUser
java Lect1015a.java manage 4.0 K 2013-10-15 - 16:08 UnknownUser
java Lect1017a.java manage 4.2 K 2013-10-17 - 16:18 UnknownUser
java Lect1017b.java manage 3.3 K 2013-10-17 - 16:18 UnknownUser
java Lect1017c.java manage 3.3 K 2013-10-17 - 16:18 UnknownUser
java Lect1017d.java manage 3.1 K 2013-10-17 - 16:18 UnknownUser
java Lect1017e.java manage 3.2 K 2013-10-17 - 16:19 UnknownUser
java Lect1017f.java manage 3.4 K 2013-10-17 - 16:20 UnknownUser
java Lect1022a.java manage 3.4 K 2013-10-22 - 18:28 UnknownUser
java Lect1022b.java manage 3.5 K 2013-10-22 - 18:28 UnknownUser
java Lect1022c.java manage 2.8 K 2013-10-22 - 18:28 UnknownUser
java Lect1024a.java manage 3.1 K 2013-10-24 - 17:34 UnknownUser
java Lect1024b.java manage 2.7 K 2013-10-24 - 17:34 UnknownUser
java Lect1024c.java manage 2.8 K 2013-10-24 - 17:34 UnknownUser
java Lect1024d.java manage 2.7 K 2013-10-24 - 17:35 UnknownUser
java Lect1024e.java manage 2.8 K 2013-10-24 - 17:35 UnknownUser
java Lect1024f.java manage 2.7 K 2013-10-24 - 17:35 UnknownUser
java Lect1024g.java manage 2.9 K 2013-10-24 - 17:35 UnknownUser
java Lect1029a.java manage 2.7 K 2013-10-31 - 16:42 UnknownUser
java Lect1029b.java manage 2.7 K 2013-10-31 - 16:42 UnknownUser
java Lect1029c.java manage 2.7 K 2013-10-31 - 16:43 UnknownUser
java Lect1029d.java manage 2.7 K 2013-10-31 - 16:43 UnknownUser
class Lect1029e.class manage 2.5 K 2013-10-31 - 16:43 UnknownUser
java Lect1029e.java manage 3.3 K 2013-10-31 - 16:45 UnknownUser
java Lect1029f.java manage 1.8 K 2013-10-31 - 16:43 UnknownUser
java Lect1031a.java manage 3.6 K 2013-10-31 - 16:43 UnknownUser
java Lect1031b.java manage 3.7 K 2013-10-31 - 16:43 UnknownUser
java Lect1031c.java manage 2.9 K 2013-10-31 - 16:44 UnknownUser
java Lect1031d.java manage 3.6 K 2013-10-31 - 16:44 UnknownUser
java Lect1031e.java manage 3.9 K 2013-10-31 - 16:44 UnknownUser
java Lect1105a.java manage 4.2 K 2013-11-05 - 17:07 UnknownUser
java Lect1107a.java manage 0.9 K 2013-11-07 - 17:07 UnknownUser
java Lect1107b.java manage 1.1 K 2013-11-07 - 17:07 UnknownUser
java Lect1107c.java manage 1.2 K 2013-11-07 - 17:08 UnknownUser
java Lect11126a.java manage 1.6 K 2013-11-26 - 19:21 UnknownUser
java Lect1118a.java manage 1.5 K 2013-11-21 - 17:06 UnknownUser
java Lect1118b.java manage 1.8 K 2013-11-21 - 17:08 UnknownUser
java Lect1118c.java manage 1.8 K 2013-11-21 - 17:08 UnknownUser
java Lect1119a.java manage 1.0 K 2013-11-19 - 19:41 UnknownUser
java Lect1119b.java manage 1.7 K 2013-11-19 - 19:41 UnknownUser
java Lect1119c.java manage 1.5 K 2013-11-19 - 19:42 UnknownUser
java Lect1119d.java manage 1.2 K 2013-11-19 - 19:42 UnknownUser
java Lect1121a.java manage 1.2 K 2013-11-21 - 17:10 UnknownUser
java Lect1121b.java manage 1.7 K 2013-11-21 - 17:10 UnknownUser
java Lect1121c.java manage 1.3 K 2013-11-21 - 17:28 UnknownUser
java Lect1126a.java manage 1.6 K 2013-11-26 - 19:20 UnknownUser
java Lect1126b.java manage 1.7 K 2013-11-26 - 19:23 UnknownUser
java Lect1203a.java manage 1.2 K 2013-12-03 - 20:02 UnknownUser
java Lect1203b.java manage 1.2 K 2013-12-03 - 20:03 UnknownUser
java Lect1203c.java manage 1.3 K 2013-12-03 - 20:03 UnknownUser
java Lect1203d.java manage 1.3 K 2013-12-03 - 20:03 UnknownUser
java Lect1203e.java manage 1.2 K 2013-12-03 - 20:03 UnknownUser
java Lect1203f.java manage 1.2 K 2013-12-03 - 20:04 UnknownUser
java QuickSort.java manage 5.5 K 2013-11-26 - 19:20 UnknownUser
java SelectionSort.java manage 3.1 K 2013-11-26 - 19:21 UnknownUser
java Template.java manage 0.6 K 2013-09-05 - 14:28 UnknownUser
Topic revision: r23 - 2013-12-03 - 20:07:51 - Main.troy

 Copyright 2016 The Board of Trustees of the University of Illinois.webmaster@cs.uic.edu WISESTHelping Women Faculty AdvanceFunded by NSF