https://kotlinlang.org logo
y

yschimke

01/12/2022, 12:06 PM
For CurvedText, if drawing at the bottom, is there a way to flip it so it's not upside down?
j

John Nichol

01/12/2022, 2:22 PM
@Sergio Sancho to confirm - but yes - maybe use
clockwise
?
s

Sergio Sancho

01/12/2022, 3:26 PM
Correct, the CurvedText/BasicCurvedText has a clockwise parameter to determine the direction of the text.
y

yschimke

01/12/2022, 7:29 PM
Copy code
CurvedRow(clockwise = false, anchor = 90f) {
    CurvedText(text = "ABCDEFGHI")
    CurvedText(text = "JKLMNOPQR")
    CurvedText(text = "STUVWXYZ")
}
message has been deleted
with clockwise = true
message has been deleted
s

Steve Bower [G]

01/13/2022, 1:38 PM
Have you tried anti-clockwise and setting the Anchor to somewhere between 135 and 180? That should be drawn the right way up.
j

John Nichol

01/13/2022, 1:59 PM
Clockwise on the CurvedText itself
y

yschimke

01/13/2022, 3:02 PM
Ahhh, misread that. Thanks!
Copy code
CurvedRow(clockwise = false, anchor = 90f) {
                CurvedText(text = "ABCDEFGHI", clockwise = false)
                CurvedText(text = "JKLMNOPQR", clockwise = false)
                CurvedText(text = "STUVWXYZ", clockwise = false)
            }
message has been deleted
👍 1