How to draw rectangle with gradient (fade out) frame


#1

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.


#2

Never have used it, but maybe that’s something you are looking for: https://docs.juce.com/master/group__juce__graphics-effects.html


#3

Oh, thanks I will try it.