APIImagesdraw_image_ex

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) -> None

Parameters

NameTypeDefaultDescription
imageImageNoneimage argument for this API call.
xintNonex argument for this API call.
yintNoney argument for this API call.
rotationfloat0rotation argument for this API call.
scalefloat1.0scale argument for this API call.
tintColorWHITEtint argument for this API call.

Returns

None

Example

from conjure import *

init_window(360, 640, "Images")
sprite = load_image("player.png")
draw_image(sprite, 120, 220)

See also

  • load_image
  • unload_image
  • draw_image

Return to the images overview or continue with the quickstart.