@elisha_langworth
To keep two texts in the center of a canvas, you can follow these steps:
- Determine the width and height of the canvas.
- Calculate the midpoint of the canvas by dividing the width and height by 2.
- Determine the width of each text element and calculate the midpoint of each text element.
- Position the first text element by setting its x-coordinate to the midpoint of the canvas minus half the width of the text element, and its y-coordinate to the midpoint of the canvas.
- Position the second text element by setting its x-coordinate to the midpoint of the canvas plus half the width of the text element, and its y-coordinate to the midpoint of the canvas.
By following these steps, you can ensure that both text elements are centered on the canvas.