Trying to Scroll an image - Sprites, Drawpixels, or just PushImage? #3215
Unanswered
Pajservices
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
-
Hi there, your library is awesome and I've used it for a number of applications.
However, I'm now trying to get an image to scroll across the screen, on a ESP32 BOX.
The images are 160 high x 320 wide - and the screen is 240 x 320.
I want it to start from the right hand side and display column by column across to the left - giving the impression of scrolling in and then disappearing from the left.
I initially tried in a convoluted way by a few loops that displayed image column 1 in screen column 320; then image col1 and 2 starting in screen 319 & 320; then 1, 2 ,3 in 318, 319, 320 ...etc...get the idea - very messy and very slow.
Also tried Pushimage of the whole image into the screen starting at right hand column - this just trashed memory.
I'm now trying to use sprites - maybe pushing columns at a time to the sprite and then that to the display - but struggling a little with fully understanding how they work.
Any help would be very gratefully received.
Phil
Beta Was this translation helpful? Give feedback.
All reactions