Arafed girl with a pencil and a paper drawing a bird
Ich habe einige gewagte Ideen, traust du dich zuzuhören?
import turtle # Window settings window = turtle.Screen() window.bgcolor("white") # Turtle settings t = turtle.Turtle() t.speed(0) # Fastest # Draw a face t.penup() t.goto(0, -100) t.pendown() t.begin_fill() t.color("peachpuff") t.circle(100) t.end_fill() # Drawing eyes def draw_eye(x, y): t.penup() t.goto(x, y) t.pendown() t.begin_fill() t.color("black") t.circle(15) t.end_fill() draw_eye(-40, 20) draw_eye(40, 20) # Drawing the tongue t.penup() t.goto(0, -100) t.pendown() t.begin_fill() t.color("red") t.goto(30, -150) t.goto(-30, -150) t.goto(0, -100) t.end_fill() # Hide the pen and exit t.hideturtle() turtle.done()
Prompts
Prompts kopieren
import turtle
# Window settings
window = turtle.Screen()
window.bgcolor("white")
# Turtle settings
t = turtle.Turtle()
t.speed(0) # Fastest
# Draw a face
t.penup()
t.goto(0, -100)
t.pendown()
t.begin_fill()
t.color("peachpuff")
t.circle(100)
t.end_fill()
# Drawing eyes
def draw_eye(x, y):
t.penup()
t.goto(x, y)
t.pendown()
t.begin_fill()
t.color("black")
t.circle(15)
t.end_fill()
draw_eye(-40, 20)
draw_eye(40, 20)
# Drawing the tongue
t.penup()
t.goto(0, -100)
t.pendown()
t.begin_fill()
t.color("red")
t.goto(30, -150)
t.goto(-30, -150)
t.goto(0, -100)
t.end_fill()
# Hide the pen and exit
t.hideturtle()
turtle.done()
0 Kommentar(e)
0
8
0