draw_text
Draws text with the default runtime font.
Signature
draw_text
Draws text with the default runtime font.Signature
draw_text(text: str, x: int, y: int, size: int, color: Color) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
text | str | None | text argument for this API call. |
x | int | None | x argument for this API call. |
y | int | None | y argument for this API call. |
size | int | None | size argument for this API call. |
color | Color | None | color argument for this API call. |
Returns
NoneExample
from conjure import *
init_window(360, 640, "API")
while not window_should_close():
begin_drawing()
clear_background(WHITE)
draw_text("Moosh", 120, 300, 28, BLACK)
end_drawing()See also
draw_circledraw_rectangledraw_line
Return to the drawing overview or continue with the quickstart.