Function and turtle help

Scott W Dunning swdunning at cox.net
Fri Feb 21 20:39:10 EST 2014


On Feb 20, 2014, at 11:30 PM, Dave Angel <davea at davea.name> wrote:

> Look at turtle.begin_fill and turtle.end_fill
> 
> That's after making sure your star is a closed shape.



So, this is what I have so far and it “works” but, it fills in the star with black and as you can see below I am trying to fill it in with red.  So I’m obviously messing up somewhere.  

def fillcolor(red):
    pencolor()
    begin_fill()
    star(500)
    end_fill()

red = pencolor
fillcolor(red)

Scott


More information about the Python-list mailing list