Difference between revisions of "CSC103 Take-Home Final Exam Spring 2012"

From dftwiki3
Jump to: navigation, search
Line 54: Line 54:
 
==Your Assignment==
 
==Your Assignment==
  
# make your sketch display circles on the window only when the mouse button is ''pressed''.  If the mouse isn't pressed, nothing happens in the window
+
# make your sketch display circles on the window '''only''' when the mouse button is ''pressed''.  If the mouse isn't pressed, nothing happens in the window
 
# make the circles shrink in size if the mouse moves toward the left side of the window.  The circles will grow in size if the mouse moves toward the right side of the window.  The circles are still random in size, but their maximum size depends on the mouse position.
 
# make the circles shrink in size if the mouse moves toward the left side of the window.  The circles will grow in size if the mouse moves toward the right side of the window.  The circles are still random in size, but their maximum size depends on the mouse position.
 
# make the circles more random in color and not with this strong ''blue'' tint.  Moreover, instead of having 10 circles the same color every time ''draw()'' is called, make each of the 10 a different (random) color.
 
# make the circles more random in color and not with this strong ''blue'' tint.  Moreover, instead of having 10 circles the same color every time ''draw()'' is called, make each of the 10 a different (random) color.
  
 
+
==Example==
 +
* Here is an example below showing the final sketch running.  It is not possible to hear the mouse click but you will see that the generation of circles is interrupted regularly when the user releases the mouse button.
 +
<br />
 +
<center><videoflash>1g_S8ekD0nk</videoflash></center>
 +
<br />
 +
<br />
  
 
=Assembly Language Program=
 
=Assembly Language Program=

Revision as of 15:30, 5 March 2012


...