How to draw rectangle with gradient (fade out) frame

I can’t find anything in documentation. Do I need prepare my own shader in OpenGL to do so? Or is there any Juce method?

I want to have a rectangle, that has frame in some colour, and make that frame glows inside of rect. And then place it on other component to mask it.

Never have used it, but maybe that’s something you are looking for:


Oh, thanks I will try it.