# Color option for Draw

**URL:** <https://root-forum.cern.ch/t/color-option-for-draw/52387>\
**Category:** Newbie\
**Tags:** roofit, root\
**Created:** [November 16, 2022, 9:34am UTC](https://root-forum.cern.ch/t/color-option-for-draw/52387 "2022-11-16T09:34:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emil\_R](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emil_r/32/31255_2.png) [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Post date:** [November 16, 2022, 9:34am UTC](https://root-forum.cern.ch/t/color-option-for-draw/52387/1 "2022-11-16T09:34:59Z")

</div>

Hi everybody,  
I have a probably simple question, but I cannot find an answer. I have made several TLines and draw them on a canvas. Now I want to make some of them in a specific color (say red) and the other ones in another (say blue). But in the documentation for Draw I only find things like a palette. Is there no option like Draw(“red”) or something like this?  
Thanks,  
Emil

_ROOT Version:_ Not Provided  
\_Platform:\_macOS  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [November 16, 2022, 9:39am UTC](https://root-forum.cern.ch/t/color-option-for-draw/52387/3 "2022-11-16T09:39:40Z")

</div>

```auto
{
   auto l1 = new TLine(0.1,0.4,0.9,0.4);
   l1->SetLineColor(kRed); l1->Draw();
   auto l2 = new TLine(0.1,0.5,0.9,0.5);
   l2->SetLineColor(kBlue); l2->Draw();
}

```
