Join Slack
Powered by
Is there any equivalent to the <CSS> `skew` transf...
# compose
a
andbapps
08/22/2024, 1:57 PM
Is there any equivalent to the
CSS
skew
transform in Compose? Or a way to recreate it manually by giving a transform matrix to the
graphicsLayer
or something?
r
romainguy
08/22/2024, 3:17 PM
On Android you can create an android.graphics.Matrix can call the skew methods on it and then transform it into a Compose matrix
romainguy
08/22/2024, 3:18 PM
You can also just directly set values in the Compose Matrix using
https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Matrix#SkewX()
a
andbapps
08/22/2024, 4:51 PM
Thank you! Is there then a modifier I could use to apply that to a Compose component?
5
Views
Open in Slack
Previous
Next