# How to draw text that follows scale and translations? GUI?

**URL:** <https://discourse.processing.org/t/how-to-draw-text-that-follows-scale-and-translations-gui/11683>\
**Category:** Beginners\
**Created:** [May 29, 2019, 4:17pm UTC](https://discourse.processing.org/t/how-to-draw-text-that-follows-scale-and-translations-gui/11683 "2019-05-29T16:17:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oOoOoO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/oooooo/32/1385_2.png) [@oOoOoO](https://discourse.processing.org/u/oOoOoO)\
**Post date:** [May 29, 2019, 4:17pm UTC](https://discourse.processing.org/t/how-to-draw-text-that-follows-scale-and-translations-gui/11683/1 "2019-05-29T16:17:59Z")

</div>

I want to draw a highscore table over my game, but I am constantly scaling and translating the canvas, so it wont stay where I want it to. How do I create a GUI type thing that will stay in the top right corner of the screen, and display the text I want it to display?

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 29, 2019, 4:28pm UTC](https://discourse.processing.org/t/how-to-draw-text-that-follows-scale-and-translations-gui/11683/2 "2019-05-29T16:28:29Z")

</div>

normally you put `pushMatrix` and `popMatrix` around the part where you scale and translate and the `text()` after the `popMatrix`

(in a 2D sketch)

---

<div class="post-metadata">

**Author:** ![oOoOoO](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/oooooo/32/1385_2.png) [@oOoOoO](https://discourse.processing.org/u/oOoOoO)\
**Post date:** [May 29, 2019, 4:35pm UTC](https://discourse.processing.org/t/how-to-draw-text-that-follows-scale-and-translations-gui/11683/3 "2019-05-29T16:35:49Z")

</div>

Oh man, its been way to long since I’ve used p5 and processing, I forgot all about push and pop. Thanks mate!
