The first step to making pen particles is making a list of particles as a 2D array, each particle will have more than one item on the particles list.
First, a list needs to be created, called particles:
Now, a script that adds a particle at a certain x and y position with a certain x and y velocity.
Deleting Particles
Now a script needs to be created to delete a particle at a certain item on the particles list:
Rendering Particles
A script will also be needed to render the particles that are already stored in the particles list:
Updating the Particles' Positions
This script moves the particles around:
Implementing The Code
Now that all the scripts are made, they must be used. Depending on the type of program wished to make, one may want to make mouse effects: