Tuesday, October 6, 2009

HW3_96130040_Vivian

HW3-1_eyes moves















HW3-2_little painter









notes
in this class i've learned:
HW3-1
(mouseX*?, mouseY*?),to move it by X or Y roll
and have tried many ratio to let it move apparently
HW3-2
the next func. is to create board let the user draw on it
it contains mousePressed(), to check the mouse click on
and (pmouseX,pmouseY), the previous frame to
(mouseX,mouseY), end point, in specific area.
and also the condition if(), and Logical operator,||,&&
to recognize the mouse is in the area or not.
challenge i face:
the choose color area was painted at 1st time,
after defined the drawing area, the prob. solved.

No comments:

Post a Comment