缓慢地改变颜色,Java图形 [英] Changing colors slowly, Java Graphics

查看:133
本文介绍了缓慢地改变颜色,Java图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个渐变背景,我想慢慢地让它改变颜色,基本上它是通过不同的颜色。颜色必须通过所有颜色混合,我不希望它通过颜色轻弹,这可能吗?请赐教一个解决方案,谢谢。 / code>和 javax.swing.Timer ,如图所示此处及以下。



p>

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.

解决方案

Also consider java.awt.image.MemoryImageSource and a javax.swing.Timer, illustrated here and below.

这篇关于缓慢地改变颜色,Java图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆