Category: Processing
-
Coding tutorial: Object pool pattern

Learn how to code the object pool pattern by pre-allocating memory and reusing objects. Which can greatly improve performance when reusing short lived objects like bullets and particles.
-
Observer Pattern Graphical Demo

This tutorial shows a graphical demo of the observer pattern. The circle, square and mosaic background are all observers of the button press. Whilst the owner of the button is the subject.
-
Expanding circle columns made in Processing

Made these expanding circle columns in Processing by rendering three circles without clearing the screen, and using hue shifting to keep it interesting. The colours go from dark and saturated, to bright and desaturated.
-
Rabbit and Carrot Finite State Machine

This post shows how the behaviour of a rabbit can be coded using a finite state machine, by breaking down the rabbit’s behaviour into different states. The rabbit’s goal is to wander around and eat carrots, whilst avoiding the deadly mouse cursor!
-
Coding a bouncing slime in Processing

Learn how to code a bouncing slime using forces and the finite state machine pattern. You will learn how to split your code up into an air state and a ground state. In the ground state the slime will wait, then launch into the air state using an impulse force. In the air state the…
-
Fun and Crazy Circle Animation in Processing

I created this fun and crazy circle animation in Processing using the Java programming language. The effect is made using time, random functions and Perlin noise.
-
Coding an Olympic Ring Animation in Processing

I created this Olympic ring animation to celebrate the Olympic games. The animation was coded in Processing using the Java programming language.
-
Processing Tutorial: How to Create Falling Snow Particles

This Processing tutorial shows you how to create snow particles which flow back and forth in the air. Learn how to simulate wind in a particle system, written using the Java programming language. The process is similar for creating rain, falling leaves and cherry blossom particles.
-
Processing Tutorial: How to Create Waterfall Particles

Learn how to create a steady stream of waterfall particles which fall due to gravity in this Processing tutorial, written in the Java programming language.
-
Processing Tutorial: How to Create Smoke Particles

Learn how to create smoke particles in this Processing tutorial using the Java programming language. You will learn how to use signum, sine waves, random numbers and Gaussian distribution to create a steady stream of smoke particles.
