This is a typo. Although these extra commas do not cause any syntactic problem, they should be removed.
sierpinski(myTurtle,p1,midPoint(p1,p2),midPoint(p1,p3),depth-1,)
sierpinski(myTurtle,p2,midPoint(p2,p3),midPoint(p2,p1),depth-1,)
sierpinski(myTurtle,p3,midPoint(p3,p1),midPoint(p3,p2),depth-1,)
No comments:
Post a Comment