sneeuwman.py

Created by numworks-nl

Created on December 03, 2021

1.02 KB

Met dit script tover je een sneeuwman op je rekenmachine tevoorschijn!


from turtle import *
from math import *
from kandinsky import *
penup()
hideturtle()
rects = [
(125,50,70,10,(240,0,32)),
(133,40,55,10,(240,0,32)),
(133,30,55,10,(240,0,32)),
(115,100,90,15,(240,0,32)),
(185,100,15,45,(240,0,32))]
for r in rects:
  fill_rect(*r)
goto(-45,-4)
pendown()
pensize(2)
right(131)
circle(60,263)
penup()
goto(15,10)
right(120)
pendown()
circle(25,119)
penup()
goto(-27,50)
pendown()
left(100)
circle(25,112)
penup()
goto(-50,-30)
pendown()
pensize(3)
goto(-100,15)
penup()
goto(-70,-10)
pendown()
goto(-95,-5)
penup()
goto(-80,0)
pendown()
goto(-85,20)
penup()
goto(50,-30)
pendown()
goto(100,15)
penup()
goto(70,-10)
pendown()
goto(95,-5)
penup()
goto(80,0)
pendown()
goto(85,20)
penup()
goto(0,-80)
pendown()
circle(2)
penup()
goto(0,-60)
pendown()
circle(2)
penup()
goto(0,-40)
pendown()
circle(2)
penup()
goto(0,-20)
pendown()
circle(2)
penup()
goto(-13,35)
pendown()
circle(2)
penup()
goto(13,35)
pendown()
circle(2)
penup()
goto(3,30)
pensize(2)
pendown()
goto(3,20)
goto(-20,25)
goto(3,30)
penup()

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.