How to draw rectangle with gradient (fade out) frame

Hello,
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: https://docs.juce.com/master/group__juce__graphics-effects.html

2 Likes

Oh, thanks I will try it.