Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

import turtle t=turtle.Turtle() def star(t): for t in range(5): t.color("red") t.pendown() t.begin_fill() t.forward(100) t.right(144) t.end_fill()

import turtle
t=turtle.Turtle()

def star(t):
    for t in range(5):
        t.color("red")
        t.pendown()
        t.begin_fill()
        t.forward(100)
        t.right(144)
        t.end_fill()
 
PREVIOUS NEXT
Tagged: #import #turtle #def
ADD COMMENT
Topic
Name
6+2 =