Line

A procedurally generated engine2d line

virtuosity.engine2d.graphics.Line

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

position2

position2 of the graphics object

Parameter Type Description Default
x2 Number x2 coordinate of the graphics object 0
y2 Number y2 coordinate of the graphics object 0

color

color of the graphics object

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

thickness

thickness of the graphics object

Parameter Type Description Default
thickness Number thickness of the graphics object 0

alpha

alpha of the graphics object

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