Sergey Y.
02/01/2023, 12:57 AMdrawWithContent
and clipRects
, but it didn't give the desired result.
Also tried using RenderNode
directly as described in Chet's post.
Haven't found a way to combine it with the Compose UI drawing system yet.
🧵Sergey Y.
02/01/2023, 12:57 AMSergey Y.
02/01/2023, 12:58 AMSergey Y.
02/01/2023, 1:05 AMSergey Y.
02/01/2023, 1:12 AMdrawContent
modifiers. (I don't know if it is possible)
E.g. pseudo code:
Modifier.drawWithContent {
drawContent() // draws original content
clipPath(path) { // draws the part of the content covered by the mask and applies the given effect to it
renderEffect = RenderEffect.createBlurEffect(...)
drawContent()
}
}
Sergey Y.
02/01/2023, 1:37 AM