Made with draw · 2026-10-24
City Trip
A car, a train, and a little house at the edge of town.
Files: main.py, car.py, train.py, house.py, tree.py, cloud.py, sun.py
Python code
This scene is drawn from Python. Open it in the editor to change the colours, positions, and shapes.
from car import *
from train import *
from house import *
from tree import *
from cloud import *
from sun import *
background("#0b1020")
rect(0, 470, 800, 130, fill="#1f2937", stroke="none")
draw_cloud(150, 110, 0.8)
draw_sun(680, 100, 0.9)
draw_house(150, 540, 1.0)
draw_train(420, 540, 1.1)
draw_car(680, 540, 1.0)
draw_tree(740, 540, 0.7)
Make your own version
Open the drawing in the editor, change one value, and run it again. Or start from a blank canvas with the beginner tutorial.