strokeWeight()

Changes thickness of lines

Example

strokeWeight(5)

circle(width/2,height/2,200)
line(50,50,350,50)
strokeWeight(25)

circle(width/2,height/2,200)
line(50,50,350,50)

Syntax

strokeWeight(w)
InputDescriptionDefault

w

The thickness of any lines or borders

1

Find these documents helpful? Let the people who made them help your child learn to code at Strivemath!

We'd love to hear your Feedback/Comments here.

Last updated