Hello
The smallest scene: a background and one circle.
# Hello: the smallest scene. You see a gold circle on dark blue.
# Try changing: "gold" to another colour; 80, the size of the circle.
#
# Run it: pyctures run hello.py
def draw():
background("midnightblue")
circle(width / 2, height / 2, 80, "gold")
Run it yourself
pip install pyctures pyctures run hello.py
Put it on your website
pyctures build hello.py -o site/
Python runs in the visitor's browser, so any static host works. How · This file on GitHub