# Code for cycling through specified colour values

**URL:** <https://discourse.processing.org/t/code-for-cycling-through-specified-colour-values/35418>\
**Category:** Coding Questions\
**Created:** [February 24, 2022, 10:53am UTC](https://discourse.processing.org/t/code-for-cycling-through-specified-colour-values/35418 "2022-02-24T10:53:28Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [February 24, 2022, 12:52pm UTC](https://discourse.processing.org/t/code-for-cycling-through-specified-colour-values/35418/5 "2022-02-24T12:52:20Z")

</div>

Hello,

Processing resources are here:

> **[Welcome to Processing!](https://processing.org/)**
>
> Processing is a flexible software sketchbook and a language for learning how to code. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology…

An array of colors:

> [@Declare and use array of colors](https://discourse.processing.org/t/declare-and-use-array-of-colors/30785/3):
>
> “Wonder is the beginning of wisdom.” - Socrates The Processing website has resources (tutorials, references and examples) here: [https://processing.org/](https://processing.org/) The fill() function accepts: Reference for the color datatype: [color \ Language (API) \ Processing 3+](https://www.processing.org/reference/color_datatype.html) Example: color c = #FF00FF; //Fuchsia color[] col = { color(255, 0, 0), // Red 0xFF00FF00, // Green #0000FF, // Blue c };slight_smile

`:)`

---

_[View the full topic](https://discourse.processing.org/t/code-for-cycling-through-specified-colour-values/35418)._
