Query on Text rotation
vijai kumar
vijaikumar.kanagarajan at gmail.com
Wed Nov 24 16:52:11 UTC 2021
Hi All,
Just wondering if there is a way to rotate image text. I want to
display a text at about 90 degrees.
I do the following to rotate the image but the viewable area height
remains the same and only truncated text is visible.
message.sprite = Sprite();
my_image = Image.Text("Hello World", 1, 1, 1);
rotated_image = my_image.Rotate(1.5707);
message.sprite.SetImage(rotated_image);
message.sprite.SetX (960);
message.sprite.SetY (520);
message.sprite.SetZ (1000);
180 degree rotation works fine, since the width and height are same as
before rotation.
Thanks,
Vijai Kumar K
More information about the plymouth
mailing list