def draw_world(curvature_step=0):
if curvature_step > 0:
villages = 360 // 4 // curvature_step
else:
villages = 5
for i in range(villages):
prepare_drawing()
draw_house()
finish_drawing()
turtle.right(curvature_step)
turtle.forward(LENGTH * 11)
for j in range(3):
prepare_drawing()
draw_tree(3 + j % 2 * 2)
finish_drawing()
turtle.right(curvature_step)
turtle.forward(LENGTH * 3)
turtle.forward(LENGTH)
评论列表
文章目录