draw_image_ex
Draws an image with rotation, scale, and tint.
Signature
draw_image_ex
Draws an image with rotation, scale, and tint.Signature
draw_image_ex(image: Image, x: int, y: int, rotation: float = 0, scale: float = 1.0, tint: Color = WHITE) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
image | Image | None | image argument for this API call. |
x | int | None | x argument for this API call. |
y | int | None | y argument for this API call. |
rotation | float | 0 | rotation argument for this API call. |
scale | float | 1.0 | scale argument for this API call. |
tint | Color | WHITE | tint argument for this API call. |
Returns
NoneExample
from conjure import *
init_window(360, 640, "Images")
sprite = load_image("player.png")
draw_image(sprite, 120, 220)See also
load_imageunload_imagedraw_image
Return to the images overview or continue with the quickstart.