Sprite colors wrong, TFT colors OK on Arduino Due, ILI9488 SPI #3595
Unanswered
PatMan6889
asked this question in
Q&A - Sprites
Replies: 1 comment 3 replies
-
Hi,
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
using
tft.fillScreen(TFT_BLUE);
or any other TFT_eSPI functions delivers correct colors.
When I like to add a sprites:
sprite.fillCircle(100, 100, 20, TFT_YELLOW);
the colors are wrong:
Blue is green. Green is red. Red is Blue. Yellow is magenta.
The resulting colors are a bit off and don't exactly match the colors on tft.
Working colors are only black and white.
I tried to play around with setSwapBytes and setColorDepth.
setSwapBytes changes nothing. setColorDepth changes the colors but not to the correct state.
I use the same code as in examples but get different results.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions