Exporting and presenting a Processing project
the examples in this lesson are written for Processing Python Mode. If you work in the recommended environment Thonny + py5, most of the code stays the same, and names with a capital letter in the middle are written in lower case with an underscore:
mouseX → mouse_x, noStroke() → no_stroke(). See the table of differences.After you make a project in Python Processing, the next step is to prepare it for:
- a competition
- a presentation at school
- a research paper
- or sharing with others
In this lesson you will learn how to organise a project, run it on another computer and make a video demonstration.
1. Organising the project
Before exporting, check that the project has a clear structure:
- the main sketch file (.pyde)
- the data folder (if you use images or CSV files)
- a description of the project
An example of a project structure:
pong_project/
pong_project.pyde
data/
results.csv
picture.png
This kind of organisation makes it easier to run the project on another computer.
2. Running the project on another computer
The easiest way is to:
- install Processing 4
- install Python Mode
- open the .pyde file
- click Run
Explained in detail in: Installing Processing Python Mode
3. Recording a video demonstration
A video is often a required part of a competition or a presentation.
You can use free tools:
- OBS Studio
- Screencast-O-Matic
- the screen recorder built into the operating system
The video demonstration should show:
- starting the project
- how the user interacts with it
- what the project does
- what the goal of the project is
4. Adding a project description
Every project should have a short description:
- the name of the project
- what the project does
- which technologies it uses
- which problem it solves
An example of a project description:
Name: The Pong game in Python Processing
Description:
This project is an implementation of the Pong game
using Python and Processing.
The game uses the physics of movement, collisions and a score system.
5. Mini project: adding a start screen
For a presentation it is often useful to add a start screen that explains how the project is used.
gameStarted = False
def draw():
global gameStarted
background(0)
if not gameStarted:
fill(255)
textAlign(CENTER)
textSize(24)
text("Press SPACE to start", width/2, height/2)
else:
# the code of the game or project goes here
ellipse(width/2, height/2, 50, 50)
def keyPressed():
global gameStarted
if key == ' ':
gameStarted = True
A start screen like this makes it easier to demonstrate the project at a competition or a presentation.
6. Preparing for a competition
- the project should work without errors
- the code should be tidy
- add comments to the code
- prepare a video demonstration
- prepare a presentation
7. What makes a good project
- a clear idea
- interaction with the user
- visually attractive graphics
- well-organised code
- originality
Frequently asked questions
How do you run a Processing project on another computer?
You need to install Processing and Python Mode, then open the .pyde file and click Run.
Is a video demonstration required?
At many competitions a video demonstration is part of the project entry, because it shows how the program works.
How long should the video be?
Usually 2–5 minutes is enough to show the idea and what the project can do.
How can the project look more professional?
Add a start screen, explain the controls and organise the code into functions or classes.
Next steps
You can continue with:
Conclusion
Now you know how to prepare and present a Processing project.
This is an important step for:
- school projects
- competitions
- a programmer's portfolio
- research papers
Your project is now ready to be shown to the world.
Check your knowledge
Open the quiz
Mini quiz: presentation
1. What should a video demonstration show?
