How to use fill when drawing

How to use fill when drawing

Using .fill_on will fill in anywhere that your lines are connected. You can play with this to try and draw block letters. ACTIONS Toolkit - scroll down to DRAWING section.

,

# ACTIONS Toolkit - scroll down to DRAWING section
#
# Chose a sprite and position it at the start of the line
sprite = codesters.Sprite("codesters")
sprite.go_to(-100, 100)
# Turn .fill_on() and start drawing. As you draw, line that are connected
# will be filled in.
sprite.fill_on()
sprite.pen_down()
sprite.glide_to(-100, -100)
sprite.glide_to(0, -100)
sprite.glide_to(0,100)
sprite.glide_to(100, -100)