Difference between revisions of "CSC212 Lab 11 Optional 2014"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- <bluebox> 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...")
 
 
(5 intermediate revisions by the same user not shown)
Line 21: Line 21:
 
<br />
 
<br />
 
:::<source lang="java">
 
:::<source lang="java">
 +
                // set text color magenta
 +
                fill( 255, 0, 255  );
 +
 +
                // display name next to tree roots...
 
text( "Mickey Mouse", MAXWIDTH/2+10, MAXHEIGHT-50 );
 
text( "Mickey Mouse", MAXWIDTH/2+10, MAXHEIGHT-50 );
 
</source>
 
</source>
 
<br />
 
<br />
 
;Step 4
 
;Step 4
: Take a snapshot of your applet and store it to a .jpg or .pdf file.  Make sure your name is on it.
+
: 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.
 
: 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.
 
<br />
 
<br />
 +
;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. 
 
<br />
 
<br />
 
<br />
 
<br />
Line 39: Line 46:
 
<br />
 
<br />
 
<br />
 
<br />
[[Category:CSC212]][[Category:Java]][[Category:Lab]]
+
[[Category:CSC212]][[Category:Java]][[Category:Labs]]

Latest revision as of 17:47, 6 November 2014

--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.