https://kotlinlang.org logo
#compose
Title
# compose
k

Klaas Kabini

03/08/2020, 8:56 AM
Can you rotate counter-clockwise using the Canvas provided by compose? With legacy view system a negative rotation angle meant rotating counter-clockwise. I am trying to do the same with compose but no success.
b

bezrukov

03/08/2020, 9:40 AM
Just add 360 to your negative angle
k

Klaas Kabini

03/08/2020, 9:53 AM
Thank you very much @bezrukov. It works.
r

romainguy

03/08/2020, 4:48 PM
@Adam Powell Are you aware of any reason why we don't accept negative values here?
a

Adam Powell

03/08/2020, 4:49 PM
not offhand, imo we should probably treat this as a bug and do what you meant
r

romainguy

03/08/2020, 4:50 PM
Definitely a bug.
2 Views