# Using defined colors from an array

**URL:** <https://discourse.processing.org/t/using-defined-colors-from-an-array/19781>\
**Category:** Beginners\
**Created:** [April 14, 2020, 6:31pm UTC](https://discourse.processing.org/t/using-defined-colors-from-an-array/19781 "2020-04-14T18:31:17Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [April 14, 2020, 9:22pm UTC](https://discourse.processing.org/t/using-defined-colors-from-an-array/19781/12 "2020-04-14T21:22:52Z")

</div>

Hello,

> [@debxyz](#):
>
> The “60” in this line.

It is only part of the frameRate counter.

Reference:

> **[% (modulo) / Reference](https://processing.org/reference/modulo.html)**
>
> Calculates the remainder when one number is divided by another. For example, when 52.1 is divided by 10, the divisor (10) goes into the dividend (52.1) five times (5 \* 10 == 50), and there is a remain…

Lots of uses for modulo:  
[Make modulo your friend!](https://community.tableau.com/message/686694#686694) Concepts can be adapted for Processing.

And further on the subject:

> [@Simple ArrayIndex problem](https://discourse.processing.org/t/simple-arrayindex-problem/19434/7):
>
> If you want to iterate over pairs of vertices in a closed shape, you can also use modulo %.

`:)`

---

_[View the full topic](https://discourse.processing.org/t/using-defined-colors-from-an-array/19781)._
