Module draw

Functions to draw elements into images

Functions

print (text, x, y) Draws a text in a position using the default font and the foreground colour.
draw (image, x, y) Draws a image in a position using the foreground colour.
blit (x, y) Draws an image with default foreground colour.


Functions

print (text, x, y)
Draws a text in a position using the default font and the foreground colour.

Parameters:

  • text Text to print
  • x x-axis screen position (in pixels) where the text will be printed
  • y y-axis screen position (in pixels) where the text will be printed
draw (image, x, y)
Draws a image in a position using the foreground colour.

Parameters:

  • image The image object to draw
  • x x-axis screen position (in pixels) where the text will be printed
  • y y-axis screen position (in pixels) where the text will be printed
blit (x, y)
Draws an image with default foreground colour.

Parameters:

  • x x-axis screen position (in pixels) where the text will be printed
  • y y-axis screen position (in pixels) where the text will be printed
generated by LDoc 1.4.6 Last updated 2022-08-01 11:21:18