954,174 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

JAVA animation problem - animating a bezier curve !!!

Hi there I am new to JAVA,

I would like to create a line 2 pixels wide that moves across my screen.

The line should be a bezier curve and should animate pixel by pixel.

I would like to have 200 fps and four seconds from animation start to end.

http://www.itfreaks.com/forum/showthread.php?t=2897

The above is a thread in which I learnt to create a curve.

I am stuck ... all help is appreciated please contact me at [email]JGee2005@aol.com[/email].

Thank you in advance.

JGee2005
Newbie Poster
2 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

I wouldn't waste my time writting some method to create a parabola like that. Use drawPolyline(), it's much easier. You could use a Timer object to keep track of how long, and then just increment the variables and call a repaint.

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

Thankyou I shall look into doing that.

JGee2005
Newbie Poster
2 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You