Class: LineStyle

PIXI.LineStyle

Represents the line style for Graphics.

new PIXI.LineStyle ()

Extends

Members

alignment number

The alignment of any lines drawn (0.5 = middle, 1 = outter, 0 = inner).

Default Value:
  • 0

alpha number inherited

The alpha value used when filling the Graphics object.

Default Value:
  • 1

Line cap style.

Default Value:
  • PIXI.LINE_CAP.BUTT

color number inherited overrides

The hex color value used when coloring the Graphics object.

Default Value:
  • 0xFFFFFF

Line join style.

Default Value:
  • PIXI.LINE_JOIN.MITER

The transform aplpied to the texture.

Default Value:
  • null

miterLimit number

Miter limit.

Default Value:
  • 10

native boolean

If true the lines will be draw using LINES instead of TRIANGLE_STRIP

Default Value:
  • false

The texture to be used for the fill.

Default Value:
  • 0

visible boolean inherited

If the current fill is visible.

Default Value:
  • false

width number

The width (thickness) of any lines drawn.

Default Value:
  • 0

Methods

Clones the object

Returns:
Type Description
PIXI.LineStyle

Destroy and don't use after this

Reset the line style to default.