Although written for Processing’s Java Mode these 2 OOP articles can be easily applied to any Processing flavor:
- From several variables to arrays - Processing 2.x and 3.x Forum
- From several arrays to classes - Processing 2.x and 3.x Forum
This is how we create classes in JS btW: