# Scrolling text goes behind a picture

**URL:** <https://rpi-rgb-led-matrix.discourse.group/t/scrolling-text-goes-behind-a-picture/243>\
**Category:** Uncategorized\
**Created:** [June 4, 2021, 7:51pm UTC](https://rpi-rgb-led-matrix.discourse.group/t/scrolling-text-goes-behind-a-picture/243 "2021-06-04T19:51:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tadam](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@tadam](https://rpi-rgb-led-matrix.discourse.group/u/tadam)\
**Post date:** [June 4, 2021, 7:51pm UTC](https://rpi-rgb-led-matrix.discourse.group/t/scrolling-text-goes-behind-a-picture/243/1 "2021-06-04T19:51:31Z")

</div>

So my issue is that I have a picture 20\*20 on the top left corner  
I want to scroll a text from the top right corner to the picture, and if the text reach the picture, it goes behind it, not over it.

scrolling a text is look like this:  
while True:  
matrix.Clear() #Also Can I do partial clean? So the picture does not vibrate…  
matrix.SetImage(img.convert(‘RGB’),)  
len = graphic.DrawText(matrix, font\_7x13B, pos, 9, red, str(“Some long text”))  
pos -= 1  
if (len+pos) \< 0:  
pos = 80 # the lenght of the screen  
time.sleep(0.05)  
canvas = matrix.SwapOnVSync(canvas)

---

<div class="post-metadata">

**Author:** ![tadam](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@tadam](https://rpi-rgb-led-matrix.discourse.group/u/tadam)\
**Post date:** [June 7, 2021, 7:58pm UTC](https://rpi-rgb-led-matrix.discourse.group/t/scrolling-text-goes-behind-a-picture/243/2 "2021-06-07T19:58:58Z")

</div>

So the solutions was way more simple than I thought…  
Just rearrenged a the code so, tha last thing I show is the picture.
