BasicStroke

constructor()

Constructs a new BasicStroke with defaults for all attributes. The default attributes are a solid line of width 1.0, CAP_SQUARE, JOIN_MITER, a miter limit of 10.0.


constructor(width: float)

Constructs a solid BasicStroke with the specified line width and with default values for the cap and join styles.

Parameters

width

the width of the BasicStroke

Throws

if width is negative


constructor(width: float, cap: int, join: int)
constructor(width: float, cap: int, join: int, miterlimit: float)
constructor(width: float, cap: int, join: int, miterlimit: float, dash: JsArray<JsNumber>?, dash_phase: float)