Window.draw

Draw a transformed texture

Parameters

tex Texture

the texture

x float

the x in units

y float

the y in units

w float

the width in units

h float

the height in units

rot float

the rotation angle from 0 to 360

originX float

the x origin

originY float

the y origin

scaleX float

the x scale of the draw

scaleY float

the y scale of the draw

flipHorizontal bool

if the texture should be flipped horizontally

flipVertical bool

if the texture should be flipped vertically

color Color

the color to blend with

Meta