# Problem installing a library (Chroma)

**URL:** <https://discourse.processing.org/t/problem-installing-a-library-chroma/15469>\
**Category:** Libraries\
**Created:** [November 13, 2019, 9:37pm UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469 "2019-11-13T21:37:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Post date:** [November 13, 2019, 9:37pm UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/1 "2019-11-13T21:37:00Z")

</div>

Can someone with more experience of contributed libraries please look at [https://github.com/neilpanchal/Chroma](https://github.com/neilpanchal/Chroma)

I cannot install this library in Processing. I have tried to download and manually install into ~/Documents/Processing/libraries

But I can see the downloaded folder does not contain a .jar file or a library folder.

---

<div class="post-metadata">

**Author:** ![Lexyth](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lexyth/32/7403_2.png) [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Post date:** [November 13, 2019, 10:16pm UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/2 "2019-11-13T22:16:13Z")

</div>

If i‘m not completely mistaken, i think the Chroma library should be part of the libraries you can directly install from within Processing.

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [November 14, 2019, 5:57am UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/3 "2019-11-14T05:57:23Z")

</div>

I can only tell you how I imported the lib on my tablet, using APDE. ( I do not have a PC).  
I used [this link](https://github.com/neilpanchal/Chroma/blob/master/distribution/Chroma-3/download/Chroma-3.zip) to download the zip, and it installed perfectly. I only changed the, " processing.core.PGraphicsRetina2D" renderer to P2D, in the example files. Everything seems to work properly.  
Edit: If I remember well, you only need to unzip the files into the libraries folder, and the examples will automatically be shown in the the menu.

---

<div class="post-metadata">

**Author:** ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Post date:** [November 14, 2019, 8:22am UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/4 "2019-11-14T08:22:46Z")

</div>

The download and installation worked perfectly, thank you.

But, changing the renderer does not work for me.

```
//size(1200, 1200, "processing.core.PGraphicsRetina2D");
size(1200, 1200, "P2D");

```

returns the error, “The P2D renderer is not in the class path.”. Do I need to put something somewhere?

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 14, 2019, 8:23am UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/5 "2019-11-14T08:23:30Z")

</div>

no " "

```auto
size(500,500,P2D);

```

but it also run here with only

```auto
size(500,500);

```

---

<div class="post-metadata">

**Author:** ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Post date:** [November 14, 2019, 8:25am UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/6 "2019-11-14T08:25:30Z")

</div>

Well, that was easy 🤣

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [November 14, 2019, 9:38am UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/7 "2019-11-14T09:38:23Z")

</div>

> [@paulstgeorge](#):
>
> But, changing the renderer does not work for me.

And OPENGL ?  
Sigh…, I have to complete 20 characters.

---

<div class="post-metadata">

**Author:** ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Post date:** [November 14, 2019, 10:20am UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/8 "2019-11-14T10:20:58Z")

</div>

There are also problems with the use of variables in size() and using saveFrame() inside keyReleased() but they are easy to solve. Even I can do it.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 14, 2019, 10:53am UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/9 "2019-11-14T10:53:54Z")

</div>

i reported it for you  
[https://github.com/neilpanchal/Chroma/issues/5](https://github.com/neilpanchal/Chroma/issues/5) 🙂

---

<div class="post-metadata">

**Author:** ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Post date:** [November 14, 2019, 11:05am UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/10 "2019-11-14T11:05:31Z")

</div>

Thank you! I added comments about size() and saveFrame().

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [November 17, 2019, 5:39pm UTC](https://discourse.processing.org/t/problem-installing-a-library-chroma/15469/11 "2019-11-17T17:39:16Z")

</div>

> [@Lexyth](#):
>
> i think the Chroma library should be part of the libraries you can directly install from within Processing

That is not correct, unfortunately – Chroma has never been submitted to Contributions Manager and added to sources.conf, so it has to be manually installed.
