# How to set color to the plot in grafica library

**URL:** <https://discourse.processing.org/t/how-to-set-color-to-the-plot-in-grafica-library/16773>\
**Category:** Libraries\
**Created:** [January 1, 2020, 9:34am UTC](https://discourse.processing.org/t/how-to-set-color-to-the-plot-in-grafica-library/16773 "2020-01-01T09:34:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamgsshetty](https://avatars.discourse-cdn.com/v4/letter/i/ecae2f/32.png) [@iamgsshetty](https://discourse.processing.org/u/iamgsshetty)\
**Post date:** [January 1, 2020, 9:34am UTC](https://discourse.processing.org/t/how-to-set-color-to-the-plot-in-grafica-library/16773/1 "2020-01-01T09:34:48Z")

</div>

![im](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/4366c1247afdf60a73413e884ea22b9be3fb30c8.png)

I want to change color of the line from grey(default) to some other color

---

<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:** [January 1, 2020, 11:20am UTC](https://discourse.processing.org/t/how-to-set-color-to-the-plot-in-grafica-library/16773/2 "2020-01-01T11:20:18Z")

</div>

-a- [https://jagracar.com/grafica.php](https://jagracar.com/grafica.php)

-b- you know that this library has a reference already loaded to your PDE?  
PDE / Help / Library reference / grafica /

-c- examples what come with the library:  
Multiple Plots  
use like

```auto
plot1.setLineColor( color(r,g,b) );

```
