Skip to content

Sprite rotation without immediately push #857

Answered by Bodmer
thor171 asked this question in Q&A - Sprites
Discussion options

You must be logged in to vote

The transformation sampling process means this can only be achieved via an image buffer. You can push a rotated copy of a Sprite to another sprite. Function prototype is:

           // 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); 

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Bodmer
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #857 on December 16, 2020 13:01.