0

I would like to create a fading color effect, something like a cloud. A transition between two Color. I found a link. But, at this topic, the writer define an bitmap pixel by pixel. Is there an other way to do this, like a fadingDrawable class? Or this is the most effective way of fading?

tashuhka
  • 5,028
  • 4
  • 45
  • 64
Lewwwer
  • 151
  • 5
  • Have you considered using a [`LinearGradientPaint`](http://docs.oracle.com/javase/7/docs/api/java/awt/LinearGradientPaint.html) – MadProgrammer Apr 18 '14 at 10:06

1 Answers1

1

Without knowing what specific libraries you're using, I can't be too specific, but as far as I know:

Most graphics libraries include some gradient functionality - this will probably be relatively fast.

And if they don't, I can't see any way to do it other than drawing the gradient pixel by pixel

Flyingfirepig
  • 223
  • 1
  • 8