Box

A procedurally generated engine2d box

virtuosity.engine2d.graphics.Box

Components


container

container of the render object



Parameter Type Description
container Container container of the render object
zIndex Number zIndex of the render object

position

position of the graphics object

Parameter Type Description Default
x Number x coordinate of the graphics object 0
y Number y coordinate of the graphics object 0

scale

scale of the graphics object

Parameter Type Description Default
width Number width of the graphics object 10
height Number height of the graphics object 10

color

color of the graphics object

Parameter Type Description Default
color Hex color of the graphics object 0xffffff

borderRadius

border radius of the graphics object

Parameter Type Description Default
radius Number border radius of the graphics object 0

alpha

alpha of the graphics object

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