Monday, October 5, 2009

HW4- Text & Image

HW04-1:


http://icac.no-ip.org/silvia/Silvia_96160552_HW04/HW_04_1/applet/

To continue using drawing board which I have done last week, at this time I start to import font file which has been installed in the computer to display texts. In order to complete this task, I can use loadFont() syntax to load the font. Once the font is generated, I can show characters to the screen by using text() syntax. About text() syntax, all I need to fix is to find out the proper coordinate of X and Y to put the characters in a specific location of rectangles. In addition, textSize() is also available to modify the size of font. Moreover, if I want to save what I have drawn on the board to a file, the save() function is accessible to use. It's pretty much astonishing when my drawing is certainly saved. So far, I have accomplished most of things on my drawing board. I got plenty of experiences in doing processing program and it indeed interesting than I thought.

HW04-2:


http://icac.no-ip.org/silvia/Silvia_96160552_HW04/HW_04_2/applet/

Finally, we can showcase everyone's marvelous works by loading images to match back and front pictures randomly. It comes out a variety of results that really attractive to me. It's really amusing when I saw the outcome.

No comments:

Post a Comment