# Processing equivalent to P5.js "repeat()"

**URL:** <https://discourse.processing.org/t/processing-equivalent-to-p5-js-repeat/36247>\
**Category:** Coding Questions\
**Created:** [April 10, 2022, 9:56am UTC](https://discourse.processing.org/t/processing-equivalent-to-p5-js-repeat/36247 "2022-04-10T09:56:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taxicletter](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@Taxicletter](https://discourse.processing.org/u/Taxicletter)\
**Post date:** [April 10, 2022, 9:56am UTC](https://discourse.processing.org/t/processing-equivalent-to-p5-js-repeat/36247/1 "2022-04-10T09:56:58Z")

</div>

Hi,  
On the openprocessing website I see in the p5.js programs “repeat()” where you can call a function and set beginning and end-values for variables and the step with which to increase.  
I know you can use a for-loop or while-loop to accomplish the same, but the repeat-function seems a lot easier.  
I searched the web, but didn’t find an equivalent in Processing. Am I right?
