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wuwHsZf83.Pn8Nlxktt6HwqwLYgN+GPv7cbS
-
Use
g.beginLayer(false); g.setColour(Colours.white); g.drawPath(xxx); g.addDropShadowFromAlpha(Colours.white, 10); g.endLayer();
This will create an intermediate image layer that you then "blur" to create the glow effect.
Make sure that you leave a bit of margin or the glow will be truncated as it won't render beyond the panels dimensions.
-
@Christoph-Hart I get it now, Thank you so much!