Draw pretty lines on screen
# lines.py # Draws pretty lines on screen from turtle import * def draw_lines(): # Set conditions N = 20 lines = range(0, N) dx = 320 / N dy = 220 / N # Set turtle condition hideturtle() speed(10) # Draw screen frame #penup() #goto(-160, -110) #pendown() #goto(159, -110) #goto(159, 111) #goto(-160, 111) #goto(-160, -110) # Draw lines for line in lines: color(128 + y, 128 - y, 128 - y) penup() goto(-160, y) pendown() goto(x + dx, -110) x += dx y -= dy