Fade in and fade out effect in java applet

前端 未结 3 1620
后悔当初
后悔当初 2021-01-21 17:29

I am making this java applet graphics with nodes and edges. I want to implement the fade-in and fade out effect on retrieval of the new nodes when one node is clicked, but I don

3条回答
  •  余生分开走
    2021-01-21 17:51

    You'll need to write an animation loop. Each time through the loop change the color of your edge and/or node. You can use either an alpha fade or a color fade to background. There are lots of tutorials on the web if you search for "java applet animation loop". One good article is here.

提交回复
热议问题