[Solved]Gradient fill a BufferedImage

Hi,
I’d like to make a fancy death animation for my combat system but got stuck on the second half of my idea. My combat is like the one from RPG Maker games. I got a BufferedImage of the current enemy in the center of the frame, like this:

When an enemy dies he will gradually turn white. That is the first part of my idea. But the second part is the tricky one. I want fill the BufferedImage with a transparent gradient from top to bottom.

Is there a way in plain java to do so? I already googled it but didn’t find anything :clue: