Wednesday, March 4, 2009

HW5_PLAYING WITH ATAN AND THE DISTANCE FORMULA






My drawing tool is not finished yet. I couldn´t make it so that if you draw slower, the line gets bigger. I changed though the thickness of the line. I don´t really understand how it works...I need some feedback on that, but basically, the first time you draw the line is really thin and the second gesture you make, the line gets thicker. I have observed that the line is generally thin when within the same gesture you draw, but it gets bigger once you draw on the other direction. I played with the sign on the sqrt and I exchanged the the sin and cos in the velocity variable...Any ideas?
I've also made it so that when you press R you can change the color of the stroke.

No comments:

Post a Comment