TFT_eSPI: help on pushRotated

I'd like to know more about the pushRotated method.

// Push a rotated copy of Sprite to TFT with optional transparent colour
bool pushRotated(int16_t angle, int32_t transp = -1); // Using fixed point maths
// Push a rotated copy of Sprite to another different Sprite with optional transparent colour
bool pushRotated(TFT_eSprite *spr, int16_t angle, int32_t transp = -1); // Using fixed point maths

How does the method know where to push the rotated sprite ?

I mean, I want to animate a sprite, make it change orientation 0 or 45°:

if (rot) img.pushRotated(45,0);
else img.pushSprite(x, y, 0);

pushSprite enables to specify the location of the sprite on the display, but not pushRotated.

Do I miss something here?

Run the "Rotated_Sprite_1" example and read all the comments. See also "Rotated_Sprite_2" and "Rotated_Sprite_3" examples.

Thanks Bodmer :slight_smile: