PIXI.LineStyle

class LineStyle extends PIXI.FillStyle

Represents the line style for Graphics.

Constructor


new PIXI.LineStyle() → {}

Summary


Properties from LineStyle

number
alignment = 0.5

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

PIXI.LINE_CAP
cap = PIXI.LINE_CAP.BUTT
PIXI.LINE_JOIN
join = PIXI.LINE_JOIN.MITER
number
miterLimit = 10

Miter limit.

boolean
native = false

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

number
width = 0

The width (thickness) of any lines drawn.

Methods from LineStyle

PIXI.LineStyle
clone()

Clones the object.

void
reset()

Reset the line style to default.

Properties inherited from FillStyle

number
alpha = 1

The alpha value used when filling the Graphics object.

number
color = 0xFFFFFF
PIXI.Matrix
matrix = null
PIXI.Texture
texture = 0
boolean
visible = false

If the current fill is visible.

Methods inherited from FillStyle

void
destroy()

Destroy and don't use after this.

Public Properties


alignment LineStyle.ts:13
alignment: number = 0.5

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

cap LineStyle.ts:19
cap: PIXI.LINE_CAP = PIXI.LINE_CAP.BUTT

Line cap style.

join LineStyle.ts:26
join: PIXI.LINE_JOIN = PIXI.LINE_JOIN.MITER

Line join style.

miterLimit LineStyle.ts:33
miterLimit: number = 10

Miter limit.

native LineStyle.ts:16
native: boolean = false

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

width LineStyle.ts:10
width: number = 0

The width (thickness) of any lines drawn.

Public Methods


clone LineStyle.ts:36
clone() → {PIXI.LineStyle}

Clones the object.

Returns:
Type Description
PIXI.LineStyle
reset LineStyle.ts:56
reset() → {void}

Reset the line style to default.

Returns:
Type Description
void

Powered by webdoc!