Difference between revisions of "CSC111 Final Exam 2014"

From dftwiki3
Jump to: navigation, search
Line 87: Line 87:
 
<br />
 
<br />
 
Write a JES program that takes an image and generates a circular "foggy" border around the center, as illustrated below.  On the left is the original image, and on the right the image generated by JES.
 
Write a JES program that takes an image and generates a circular "foggy" border around the center, as illustrated below.  On the left is the original image, and on the right the image generated by JES.
 +
<center>
 
<br />
 
<br />
 
[[Image:catmelonhelmet.jpg|300px]]&nbsp;&nbsp;&nbsp;[[Image:catmelonhelmetfog.png|300px]]
 
[[Image:catmelonhelmet.jpg|300px]]&nbsp;&nbsp;&nbsp;[[Image:catmelonhelmetfog.png|300px]]
Line 92: Line 93:
 
[[Image:funnybaby.jpg|300px]]&nbsp;&nbsp;&nbsp;[[Image:funnybabyfog.png|300px]]
 
[[Image:funnybaby.jpg|300px]]&nbsp;&nbsp;&nbsp;[[Image:funnybabyfog.png|300px]]
 
</onlydft>
 
</onlydft>
 +
</center>
 +
==Implementation Details==
 +
* The "circle of fog" is as big as the width or the height of the image, whichever is smaller
 +
* The fog can be white or black, depending on your own preference
 +
* The image is fully white or fully black outside the "circle of fog".
 +
* Your JES program should only ask the user for a file name, nothing else.

Revision as of 17:45, 25 April 2014


...

</center>

Implementation Details

  • The "circle of fog" is as big as the width or the height of the image, whichever is smaller
  • The fog can be white or black, depending on your own preference
  • The image is fully white or fully black outside the "circle of fog".
  • Your JES program should only ask the user for a file name, nothing else.