https://kotlinlang.org logo
#korge
Title
# korge
n

nanodeath

09/14/2020, 2:38 PM
if I want to contort an Image (or View, I guess) into a trapezoid shape, is there a way to do that? kind of like skew, but...not
I think I'm looking for a perspective transformation
eh, I guess it's not possible without some kind of 3d object. I can live with that.
d

Deactivated User

09/15/2020, 2:00 PM
right now the supported transformation is a 3x2 Matrix. We could add a transform3D or similar to support perspectives in 2d rendering
👍 1
But that's not available right now
n

nanodeath

09/15/2020, 2:30 PM
thanks...the main purpose was to add a bit of perspective in a card-flipping animation, but even without perspective it still looks fine. I just animate the scaleX to 0, swap the texture, then back up to 1
👍 1
3 Views