Text and Images
Last updated
Last updated
Text(center_xy, text)
Property | Default Value | Description |
| REQUIRED (No default) | The center coordinate (x, y) of where to draw the text. |
|
| The text you want to display. |
| "black" | RGB tuple color value, hexadecimal color value, or string containing color name can be used. |
| "Arial" | The font family used for the text. Font must be installed on machine to be used. |
| 16 | The font size of the text. |
| False | When set to True, it bolds the text. |
| False | When set to True, it italicizes the text. |
| False | When set to True, it underlines the text. |
| False | When set to True, it strikes-out the text. |
| True | True = Text can be seen. False = Text cannot be seen. |
Example:
First thing that need 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 filename can be relative or an absolute file path.
Then you can create an image object.
Image(center_xy, image)
Property | Default Value | Description |
| REQUIRED (No default) | The center coordinate (x, y) of where to draw the image. |
| REQUIRED (No default) | The image file to draw. Must use the |
| True | True = Image can be seen. False = Image cannot be seen. |
Example: