I need one colour fading example which is written in Java.
My requirement is I have two rectangles. One is filled up with colour red and another is filled up with white. When I click any button, I want that red colour to start fading and moving green colour. Once it is reached to green position then automatically another rectangle should start from yellow blue. Could anybody help me on this? If any example got which is written in Javaswing or SWT will be good. Thanks.
I need one colour fading example which is written in Java. My requirement is
Share
Checkout Trident animation library. It allows you to easily interpolate properties in your class. Also check these original tutorials from Kirill Grouchnikov (the author of Trident).
EDIT: animation example w/o Trident
The following sample is based on AnimatedGraphics example in Filthy Rich Clients: