Comment:
Based on "Static Eyes" of HW2. This time let eyes roll according to mouse's position. It's an easy task if you hold the key - mouseX, mouseY - which record current mouse's position.
After we can know mouse's position. Next step is setting center of the window as origin(at coordinate[width / 2, height / 2]). If mouse in right side of origin, all eyeballs move right. If in left, eyeballs move left, accordingly. And farer the mouse away origin, longer the eyeballs move.
I just used red and black to color these eyes. Can you catch my intention?
That's right! "Sharingan"
But it doesn't look well. Because it needs rotate some objects(tomoe[ともえ:巴]) concurrently that I don't know how to do this now. Maybe in winter vocation or some leisure time I'll study Processing more detailedly about related topics.

沒有留言:
張貼留言