https://kotlinlang.org logo
Title
a

Arjan van Wieringen

02/11/2023, 3:31 PM
Am I correct that if I add a RenderEffect on a
graphicsLayer
of a canvas that this only applies to the current canvas, and not what is behind? So, I can't make a panel that blurs everything that is behind it? If true, is there a way in Compose currently to achieve this?
k

Kirill Grouchnikov

02/11/2023, 4:45 PM
That is correct, since it wouldn't have access to those pixels
a

Arjan van Wieringen

02/11/2023, 5:35 PM
So would be impossible to create a panel that blurs anything that is behind it, except its own canvas?
k

Kirill Grouchnikov

02/11/2023, 5:37 PM
The way the rendering pipeline works, correct. You can create a custom modifier to set on the composable that needs to be blurred, optionally with mask area.