How to change the width of a line

How to change the width of a line

To change the width of the line use .pen_width. ACTIONS Toolkit - scroll down to DRAWING section. The larger the number the wider the line.

,

# ACTIONS Toolkit - scroll down to DRAWING section
#
# Draw a wide line
# Chose a sprite and position it at the start of the line
sprite = codesters.Sprite("codesters")
sprite.go_to(-100, 100)
# Put the pen down, set the color, and move the sprite to draw the line
# The larger the number the wider the line
sprite.pen_down()
sprite.pen_width(10)
sprite.go_to(-100, -100)