2010年10月20日 星期三

HW5

This time we introduce mouseX and mouseY mechanism to track the coordinate by detecting the specific color of a moving object. In this case, once the camera detect a red object, its color turns into blue and then it looks like I am doing drawing on the screen by moving the object. Then, I also load a picture of watermelon to move with the specific colored target. I encountered great difficulties when dealing with those pointers and coordinates of mouseX and mouseY. But, I think I get the picture of this hard task and I hope it does help and I can get some idea for the future project.

沒有留言:

張貼留言