Sprite not drawing to other sprite when using transparency #3394
Unanswered
henryernice
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'm fiddling around with using sprites and transparency to render an image to the screen with a transparent background.
When i don't set any color as transparent, it draws fine (but with a black background) but when i set the transparent color to 0 when drawing the dinoSpr to the screenSpr it doesn't draw anything at all.
This is without the transparency:
![IMG_4498](https://private-user-images.githubusercontent.com/103133437/346216083-f8729a65-300f-4824-9e20-8756378f96c8.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTU0OTMsIm5iZiI6MTczOTU5NTE5MywicGF0aCI6Ii8xMDMxMzM0MzcvMzQ2MjE2MDgzLWY4NzI5YTY1LTMwMGYtNDgyNC05ZTIwLTg3NTYzNzhmOTZjOC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNDUzMTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMTZjMWNhY2I3OTIwOTE3ZDc2NjljNzNlMDM4NzdjN2YxYWZiMDIzNGU2MzEwZGYxYWYwZmM5N2I4NDk4ODI2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.uIIoqD6i_lFD1VqfE6vsjCMm4GLXyynd1lm9FXLs7ok)
![IMG_4499](https://private-user-images.githubusercontent.com/103133437/346216072-0e5f99d2-2af6-4d56-8261-fae7d52a7671.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTU0OTMsIm5iZiI6MTczOTU5NTE5MywicGF0aCI6Ii8xMDMxMzM0MzcvMzQ2MjE2MDcyLTBlNWY5OWQyLTJhZjYtNGQ1Ni04MjYxLWZhZTdkNTJhNzY3MS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNDUzMTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZDczOTYyYTYxMDgwM2IxZjI2YzcxZDVkNDQxYjIzOWVjZWMwZDA0NDhlYWU5YjIyMDE5MjJkNjJhNDk2ODhiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.IjfaFJu1Ei04_NANZt5ifNUlyJcy0OSrty5A25Oj5cM)
This is when the transparent color is set to 0 (like it is in the script below):
And also just ignore the terrible wiring, i'm working on it :)
I don't know if it's a bug or more likely i made a mistake but help is very much appreciated.
Script and image header file:
ILI9341 issue dinosprite.zip
Beta Was this translation helpful? Give feedback.
All reactions