Skip to content

Graphics.lineStyle method

Graphics › lineStyle

Unofficial

Sets the line style.

Signature:

lineStyle(width: number, color?: ColorSource | undefined, alpha?: number | undefined, alignment?: number | undefined, native?: boolean | undefined): this

Parameters:

Parameter Type Description
width number Line width.
color? ColorSource | undefined Line color.
alpha? number | undefined Line alpha.
alignment? number | undefined Line alignment.
native? boolean | undefined Whether to use native line drawing.

Returns: thisThis graphics for chaining.