Text and Images
Text
Text(center_xy, text)

center_xy
REQUIRED (No default)
The center coordinate (x, y) of where to draw the text.
text
"" - empty string
The text you want to display.
color
"black"
RGB tuple color value, hexadecimal color value, or string containing color name can be used.
font
"Arial"
The font family used for the text. Font must be installed on the computer viewing the drawing.
size
16
The font size of the text.
bold
False
When set to True, it bolds the text.
italic
False
When set to True, it italicizes the text.
underline
False
When set to True, it underlines the text.
strikethrough
False
When set to True, it strikes-out the text.
visible
True
True = Text can be seen.
False = Text cannot be seen.
Example:
Images
First thing that needs to be done to use an image is open it in Easy Draw with the open_image() function.
The open_image() function requires 1 positional argument - filename. The image file should be in the same folder as your program.
Easy Draw can open .png, .gif, .jpg, .webp, .bmp, and .svg images.
Images from the Internet
open_image() also works with a public image link that starts with http:// or https://.
Drawing the Image
Then you can create an image object.
Image(center_xy, image)

center_xy
REQUIRED
(No default)
The center coordinate (x, y) of where to draw the image.
image
REQUIRED
(No default)
The image file to draw.
Use the open_image() function to create the required image object.
visible
True
True = Image can be seen.
False = Image cannot be seen.
Example:
Images can rotate, just like every other Easy Draw object:
Last updated
Was this helpful?