Author
Travis Kirton


Line Width

You can change the lineWidth of a shape by setting its respective property:

shape.lineWidth = 40.0

The default width of a line is 1.0.

Example

//create a circle
let circle = Circle(center: canvas.center, radius: 100)

//change the line width
circle.lineWidth = 40

//add it to the canvas
canvas.add(circle)