A Number that defines the line width to use when rendering the body outline (if a sprite is not defined). A value of 0 means no outline will be rendered.
1.5
An Object
that defines the sprite properties to use when rendering, if any.
An String
that defines the path to the image to use as the sprite texture, if any.
A Number
that defines the offset in the x-axis for the sprite (normalised by texture width).
0
A Number
that defines the scaling in the x-axis for the sprite, if any.
1
A Number
that defines the offset in the y-axis for the sprite (normalised by texture height).
0
A Number
that defines the scaling in the y-axis for the sprite, if any.
1
A String that defines the stroke style to use when rendering the body outline (if a sprite is not defined). It is the same as when using a canvas, so it accepts CSS style property values. Default: a random colour
A flag that indicates if the body should be rendered.
true
Generated using TypeDoc
A String that defines the fill style to use when rendering the body (if a sprite is not defined). It is the same as when using a canvas, so it accepts CSS style property values. Default: a random colour