SHARE
TWEET

Untitled

a guest Jan 26th, 2020 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from turtle import *
  2. def tree():
  3.     i = 1
  4.     s = 5
  5.     penup()
  6.     goto(0, -100)
  7.     pendown()
  8.     width(10)
  9.     color("#C5C5C5")
  10.     left(90)
  11.     forward(200)
  12.     while i <= 41:
  13.         color("#49F070")
  14.         width(4)
  15.         forward(s)
  16.         left(90)
  17.         s = s + 3
  18.         i = i + 1
  19.  
  20.  
  21. def star(clr, ln):
  22.     i = 1
  23.     while i <= 2:
  24.         begin_fill()
  25.         color(clr)
  26.         forward(ln)
  27.         left(144)
  28.         forward(ln)
  29.         left(144)
  30.         i = i + 1
  31.     end_fill()
  32.  
  33. def sun(clr,ln):
  34.     i = 1
  35.     while i <= 18:
  36.         begin_fill()
  37.         color(clr)
  38.         forward(ln)
  39.         left(100)
  40.         i = i + 1
  41.     end_fill()
  42.  
  43. def cross(clr,ln):
  44.     color(clr)
  45.     forward(ln)
  46.     right(90)
  47.     forward(ln)
  48.     left(90)
  49.     forward(ln*1.6)
  50.     left(90)
  51.  
  52.     forward(ln)
  53.     right(90)
  54.     forward(ln)
  55.     left(90)
  56.     forward(ln*1.6)
  57.     left(90)
  58.  
  59.     forward(ln)
  60.     right(90)
  61.     forward(ln)
  62.     left(90)
  63.     forward(ln*1.6)
  64.     left(90)
  65.  
  66.     forward(ln)
  67.     right(90)
  68.     forward(ln)
  69.     left(90)
  70.     forward(ln*1.6)
  71.     left(90)
  72.  
  73. def house(size,cl1,cl2):
  74.     color(cl1)
  75.     begin_fill()
  76.     forward(size)
  77.     right(90)
  78.     forward(size)
  79.     right(90)
  80.     forward(size)
  81.     right(90)
  82.     forward(size)
  83.     end_fill()
  84.     color(cl2)
  85.     begin_fill()
  86.     right(30)
  87.     forward(size)
  88.     right(120)
  89.     forward(size)
  90.     end_fill()
  91.  
  92. def square(size,cl):
  93.     color(cl)
  94.     begin_fill()
  95.     forward(size)
  96.     left(90)
  97.     forward(size)
  98.     left(90)
  99.     forward(size)
  100.     left(90)
  101.     forward(size)
  102.     end_fill()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top