BasicStroke

external class BasicStroke : Stroke

Constructors

Link copied to clipboard
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.

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)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var cap: int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var join: int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun createStrokedShape(s: Shape): Shape

Returns a Shape whose interior defines the stroked outline of a specified Shape.

Link copied to clipboard

Returns the array representing the lengths of the dash segments. Alternate entries in the array represent the user space lengths of the opaque and transparent segments of the dashes. As the pen moves along the outline of the Shape to be stroked, the user space distance that the pen travels is accumulated. The distance value is used to index into the dash array. The pen is opaque when its current cumulative distance maps to an even element of the dash array and transparent otherwise.

Link copied to clipboard
Link copied to clipboard
fun getEndCap(): int

Returns the end cap style.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the limit of miter joins.