View Single Post
  #2 (permalink)  
Old 01-07-2008, 09:38 AM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
Animation
Hello BlitzA.

If I understand you correctly, you want to modify your program so that:
  1. It does not flicker
  2. It is animated
  3. It involves rotating shapes
To stop the flicker, you will need to create a buffer to draw on and then draw the buffer onto your screen component. To create animation, you will need to create a thread. Finally, to rotate shapes, you must us the Math.sin() and Math.cos() methods.

Do you want me to create an example for you and attach it later?
__________________
If your ship has not come in yet then build a lighthouse.
Reply With Quote