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

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?

1 Like

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

(in a 2D sketch)

3 Likes

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

1 Like