# Individualize functions in P5.js

**URL:** <https://discourse.processing.org/t/individualize-functions-in-p5-js/32051>\
**Category:** Coding Questions\
**Created:** [September 1, 2021, 3:27pm UTC](https://discourse.processing.org/t/individualize-functions-in-p5-js/32051 "2021-09-01T15:27:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [September 1, 2021, 3:48pm UTC](https://discourse.processing.org/t/individualize-functions-in-p5-js/32051/3 "2021-09-01T15:48:12Z")

</div>

> [@Kevincroos](#):
>
> I need help to individualize those balls, but i dont know how i start.

Although written for Processing’s Java Mode these 2 OOP articles can be easily applied to any Processing flavor:

1. [From several variables to arrays - Processing 2.x and 3.x Forum](http://forum.Processing.org/two/discussion/8082/from-several-variables-to-arrays.html)
2. [From several arrays to classes - Processing 2.x and 3.x Forum](http://forum.Processing.org/two/discussion/8081/from-several-arrays-to-classes.html)

This is how we create classes in JS btW:

> **[class - JavaScript | MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/class)**
>
> The class declaration creates a binding of a new class to a given name.

---

_[View the full topic](https://discourse.processing.org/t/individualize-functions-in-p5-js/32051)._
