# How to contribute a new library for Processing 4?

**URL:** <https://discourse.processing.org/t/how-to-contribute-a-new-library-for-processing-4/36617>\
**Category:** Development\
**Created:** [April 26, 2022, 8:29pm UTC](https://discourse.processing.org/t/how-to-contribute-a-new-library-for-processing-4/36617 "2022-04-26T20:29:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GuilhermeSilveira](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/guilhermesilveira/32/16130_2.png) [@GuilhermeSilveira](https://discourse.processing.org/u/GuilhermeSilveira)\
**Post date:** [April 26, 2022, 8:29pm UTC](https://discourse.processing.org/t/how-to-contribute-a-new-library-for-processing-4/36617/1 "2022-04-26T20:29:38Z")

</div>

I have extracted a library with support for easy timed events suchs as, “invoke hello every 1 second, 10 times”.

```auto
void setup() {
	new Timers(this).add(1000, 10, this::hello);
}

void hello(int k) {
	println("Hello " + k);
}

```

There are other usages with support for lambdas such as:

```auto
new Timers(this).add(1000, 10, () -> println("hi"));

```

The library is available here.

> **[GitHub - guilhermesilveira/timer: A timer library for Processing 4.](https://github.com/guilhermesilveira/timer)**
>
> A timer library for Processing 4. Contribute to guilhermesilveira/timer development by creating an account on GitHub.

According to the wiki [1] I should notify someone here to have it registered in the contributed libraries section of the Processing website.

Should I notify someone specific to have it checked/added?

[1] [Library Guidelines · processing/processing Wiki · GitHub](https://github.com/processing/processing/wiki/Library-Guidelines#folder-structure)

regards

---

<div class="post-metadata">

**Author:** ![Ov3rM1nD](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ov3rm1nd/32/1756_2.png) [@Ov3rM1nD](https://discourse.processing.org/u/Ov3rM1nD)\
**Post date:** [April 26, 2022, 9:47pm UTC](https://discourse.processing.org/t/how-to-contribute-a-new-library-for-processing-4/36617/2 "2022-04-26T21:47:40Z")

</div>

Olá Guilherme! You should contact @prisonerjohn  
[Library Basics · processing/processing Wiki · GitHub](https://github.com/processing/processing/wiki/Library-Basics#:~:text=Once%20everything%20is%20in%20place%2C%20send%20your%20static%20links%20to%20the%20Processing%20Librarian%3A%20Elie%20Zananiri.%20We%27ll%20review%20your%20properties%20file%20to%20make%20sure%20everything%20is%20in%20order%20and%20add%20your%20contribution%20to%20the%20list%20of%20advertised%20libraries).

---

<div class="post-metadata">

**Author:** ![prisonerjohn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/prisonerjohn/32/10222_2.png) [@prisonerjohn](https://discourse.processing.org/u/prisonerjohn)\
**Post date:** [April 27, 2022, 12:35pm UTC](https://discourse.processing.org/t/how-to-contribute-a-new-library-for-processing-4/36617/3 "2022-04-27T12:35:26Z")

</div>

Hello @GuilhermeSilveira

Just send me an email at [prisonerjohn+p5@gmail.com](mailto:prisonerjohn+p5@gmail.com) when you are ready. Make sure to include both the URL links for the ZIP and TXT files for your library, as outlined on the wiki.

If you want to use GitHub to host your files, I would suggest uploading your ZIP and TXT files using GitHub Releases. The trick is to create a release tagged `latest` , and to move that tag up to the new commit whenever you make an update. (Note that you can also tag each release with its version number, in case you want to make older releases still available on GitHub.) [processing-android](https://github.com/processing/processing-android/releases) is a good example you can look at.

---

<div class="post-metadata">

**Author:** ![GuilhermeSilveira](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/guilhermesilveira/32/16130_2.png) [@GuilhermeSilveira](https://discourse.processing.org/u/GuilhermeSilveira)\
**Post date:** [April 27, 2022, 3:56pm UTC](https://discourse.processing.org/t/how-to-contribute-a-new-library-for-processing-4/36617/4 "2022-04-27T15:56:06Z")

</div>

Thanks for the help, just sent the email. I will look into other possible contributions points for p4 later.
