Image

An image using a loaded texture created by add.image

virtuosity.engine2d.Image

Components


pixi

reference to the render object



Parameter Type Description
pixi Pixi.js object reference to the pixi render object (internal)
type String the type of the Entity

id

reference to id of the render object.



Parameter Type Description
id String reference to id of the render object

position

position of the render object



Parameter Type Description
x Number x coordinate of the render object
y Number y coordinate of the render object

rotation

rotation of the render object

Parameter Type Description Default
rotation Number rotation of the render object 0

anchor

the position and rotation point of the render object

Parameter Type Description Default
x Number x coordinate of the anchor point 0
y Number y coordinate of the anchor point 0

skew

skew amount of the render object (in radians)

Parameter Type Description Default
x Number ammount of skew in the x-axis 0
y Number ammount of skew in the y-axis 0

alpha

alpha of the render object

Parameter Type Description Default
alpha Number alpha of the render object 1

scale

the scale of the render object



Parameter Type Description
width Number width of the render object
height Number height of the render object

zIndex

zIndex of the render object

Parameter Type Description Default
zIndex Number zIndex of the render object 0

tint

tint of the render object

Parameter Type Description Default
tint Hex tint of the render object 0xffffff