Projects for competitions in Python Processing

Environment:
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.

Lesson 18 of 20 · Python and Processing

Python Processing is an excellent tool for making projects for school competitions, science papers and creative presentations. You can combine programming, mathematics, physics and art and make visually impressive projects.

The best projects combine: interactivity + animation + a clear idea.

If you have not done the basics yet, we recommend:


Why use Processing for competitions

  • visually attractive projects
  • a combination of mathematics and graphics
  • interactivity (mouse + keyboard)
  • ideal for STEM projects
  • easy to present

Examples of projects for competitions

1. A simulation of the Solar System

  • the orbits of the planets
  • trigonometry (sin, cos)
  • animated movement

2. Data visualisation

  • charts
  • CSV data
  • an interactive display

3. Mini games

  • Pong
  • reaction games
  • logic games

4. Generative art

  • random algorithms
  • visual effects
  • animation

Additional ideas (advanced projects)

A gravity simulation

  • several objects that attract each other
  • the physics of movement
  • an advanced project

AI Pong (computer against the player)

  • moving the paddle automatically
  • predicting the path of the ball
  • the basics of artificial intelligence

Music visualisation

  • reacting to sound
  • animated charts
  • a multimedia project

Fractals (Mandelbrot, Julia)

  • advanced mathematics
  • visually impressive
  • excellent for competitions

Mini project: an interactive particle system


particles = []

class Particle:
    def __init__(self, x, y):
        self.x = x
        self.y = y
        self.dx = random(-2, 2)
        self.dy = random(-2, 2)

    def update(self):
        self.x += self.dx
        self.y += self.dy

    def display(self):
        circle(self.x, self.y, 8)

def setup():
    size(600, 400)
    for i in range(100):
        particles.append(Particle(width/2, height/2))

def draw():
    background(0)
    for p in particles:
        p.update()
        p.display()

def mousePressed():
    particles.append(Particle(mouseX, mouseY))

How can you improve the project?

  • add colours and a fade effect
  • add gravity
  • collision detection
  • a trail (the particles leave a trace)

How to make a project that wins

  • have a clear idea (what the project does)
  • add interaction (mouse/keyboard)
  • add animation
  • make a nice visual design
  • explain the project clearly

FAQ — Projects for competitions

Which projects are best for a competition?

Simulations, games, data visualisation and generative art.

Does it have to be a complex project?

No — the idea and the presentation matter more than the complexity.

How can I stand out?

Add interaction and an original idea.

Should I use several areas?

Yes — a combination of mathematics + graphics gives the best results.

How important is the presentation?

Very important — it often decides the winner.


The next step

Exporting and presenting your work

Learn how to prepare a project for a competition and a presentation.

Go to the lesson → (SR)

The next step: writing the paper

Check your knowledge

Open the quiz

Mini quiz: a competition project

1. What is most important in a competition project?




Useful external resources