turtle.right(30)
import turtle terry = turtle.Turtle terry.size = (15) def drawPoint( length ): terry.forward( length ) terry.left(60) def resetPosition( length ): terry.penup() setpos(0, length ) terry.pendown() def main(): length = input("How large do you want the Star of David to be?") firstHalf = input("What color do you want half of the Star to be?") secondHalf = input("What color do you want the other half to be?") terry.color = firstHalf terry.right(30) beginFill() drawPoint( length ) drawPoint( length ) drawPoint( length ) endFill() main()
setpos(0, length )
terry.setpos(0, length )
terry = turtle.Turtle() # note the parenthesis
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)