Skip to content

draw_text

Draw text with the built-in font.

Parameters

  • text — The string to draw.
  • x — Left edge.
  • y — Top edge.
  • size? — Font size, default 20.
draw_text("Hello World", 40, 40, 48)

Related: set_color, write.

See the drawing guide for more examples and limits.