Twin Sprites Different Size when displayed #3451
Unanswered
JHershey69
asked this question in
Q&A - Sprites
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created 2 sprites of the same size and filled each with a triangle. The first the triangle points up, the second the triangle points down. My code:
tri1.createSprite(8,8);
tri2.createSprite(8, 8);
// Triangle points up and is top triangle
tri1.fillSprite(TFT_BLACK);
tri1.fillTriangle(4, 0, 0, 8, 8, 8, TFT_WHITE);
tri1.pushToSprite(&spr, 165, 18, TFT_BLACK);
//Triangle points down and is bottom triangle
tri2.fillSprite(TFT_BLACK);
tri2.fillTriangle(0, 0, 8, 0, 4, 8, TFT_WHITE);
tri2.pushToSprite(&spr, 166, 32, TFT_BLACK);
That second sprite appears larger when displayed, whether it is pushed first or second.
What can I learn here?
TIA.
Beta Was this translation helpful? Give feedback.
All reactions