MiniProject - turn(t,0) def house(t,height): turn(t,90)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
def square(t,length): for side in range (4): forward(t,30) turn(t,90) def triangle(t,length): for side in range (3): forward (t,30) turn (t,-120) def circle (t,length): for side in range (18): turn(t,35) forward(t,10) def line (t,length): for side in range (1): forward (t,40)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: turn(t,0) def house(t,height): turn(t,90) square(t,30) triangle(t,30) def tree(t, height): circle(t,45) penUp turn(t,-90) penDown line(t,40) def newNeighborhood(t,height): for side in range (1): forward(t,90) turn(t,0) triangle(t,30)...
View Full Document

This document was uploaded on 10/26/2011 for the course CS 1315 at Georgia Tech.

Ask a homework question - tutors are online