Draw a Little House
A house is easy: a box for the walls and a triangle on top for the roof. You already know both shapes. All you have to do is move the turtle to the right spot in between.
π‘ The idea
Big pictures are made of small shapes put in the right place.
- square 100 draws the walls and leaves the turtle at the bottom corner.
- forward 100 walks the turtle up to the top of the walls.
- right 30 tilts the turtle so the roof sits neatly on the box.
- Change the colour before a shape, not after it.
- goto 25 0 sends the turtle straight to a spot, ready for the door.
π Words to know
- goto
- go straight to a spot on the page
- shape
- a drawing the turtle already knows
- picture
- many shapes put together
π Watch this
A brown box with a red roof sitting on top: a little house.
colour brown square 100 forward 100 right 30 colour red triangle 100
βοΈ Your turn
- Run it and look at the roof.
- Change the roof colour to green.
- Change both 100s to 150 to build a bigger house.
- Add a window: goto 15 60 and then square 25.
- Give your house a sun somewhere with colour yellow and dot 40.
π― Challenge: Add a door to the front of the house.
Show me one answer
colour brown square 100 goto 25 0 colour black square 50
Your program