Skip to content

raylib.DrawTextureEx

JoeStrout edited this page Oct 17, 2026 · 3 revisions

Draw a texture with rotation and scale NOTE: Rotation applied from top-left corner origin

Parameters

Parameter Default Value Note
texture
position [0, 0]
rotation 0
scale 1.0
tint WHITE

Return value

None.

Notes

Example

tex = raylib.LoadTexture("sprite.png")
raylib.BeginDrawing
  raylib.ClearBackground raylib.BLACK
  // Draw at [100, 80], rotated 45 degrees, scaled 2x
  raylib.DrawTextureEx tex, [100, 80], 45, 2.0, raylib.WHITE
raylib.EndDrawing
raylib.UnloadTexture tex

Clone this wiki locally