Skip to content

Graphics.lineStyle method

Graphics › lineStyle

Unofficial

Sets the line style.

Signature:

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

Parameters:

ParameterTypeDescription
widthnumberLine width.
color?ColorSourceLine color.
alpha?numberLine alpha.
alignment?numberLine alignment.
native?booleanWhether to use native line drawing.

Returns: this — This graphics for chaining.