CSC212 Lab 11 Optional 2014

From dftwiki3
Revision as of 16:47, 6 November 2014 by Thiebaut (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

--D. Thiebaut (talk) 19:14, 1 November 2014 (EDT)


This lab is optional, and given on Otelia Cromwell Day, at Smith College. Not doing the lab will not penalize you regarding the class material we cover in this class. I am releasing it as a fun lab that will teach you how to create Processing Applets from within Eclipse.
If you do this lab and submit the answer to the last "challenging" question, the grade you get will replace the lowest lab grade you will have received so far.
The deadline for submitting your lab work to Moodle is Saturday, November 8, at 11:55 p.m.


Step 1
Do this Tutorial, and setup Eclipse to work with Processing


Step 2
Go through Exercises 1 through 8.


Step 3
Generate the solution to Challenging Exercise 9.
Add this code at the end of your setup() function to display your name on the screen (replace Mickey Mouse by your name, of course!)


                // set text color magenta
                fill( 255, 0, 255  );

                // display name next to tree roots...
		text( "Mickey Mouse", MAXWIDTH/2+10, MAXHEIGHT-50 );


Step 4
Take a snapshot of your applet, call it FractalTree, and store it as a .jpg or .pdf file. Make sure your name is next to the tree.
Upload the snapshot to Moodle before the deadline.
P.S. There are plenty of recipes on the Web regarding taking screenshots in Windows and on Macs. Feel free to share your discoveries on piazza. Some utilities are better than others. Also, jpg and pdfs are preferred.


Step 5
Submit your java file to Moodle as well. Submitting only the image or only the code will result in a grade of 0. Both files are required for a grade.