Changing colors slowly, Java Graphics
问题 I have a gradient background and I want, slowly, for it to change colors, basically for it to go through different colors. The color has to blend through all the colors, I do not want it to flick through colors, is this possible? Please enlighten me with a solution, thanks. 回答1: Also consider java.awt.image.MemoryImageSource and a javax.swing.Timer , illustrated here and below. 回答2: Really too hard to say anything (whatever clever) to my defense, (try & enjoy) import java.awt.*; import java