Line Color

I need to draw a line in different color using TVirtualX->DrawLine(). Seeing the reference, I saw the SetLineColor(Color_t cindex), and I hope it will work for this. But what exactly is the parameter that go inside the function? How can I specify another color?

Thank you very much!

For details about colour codes, see: root.cern.ch/root/html/TAttFill.html

Rene

[quote=“BlankMind”]I need to draw a line in different color using TVirtualX->DrawLine(). Seeing the reference, I saw the SetLineColor(Color_t cindex), and I hope it will work for this. But what exactly is the parameter that go inside the function? How can I specify another color?

Thank you very much![/quote]Are you sure the low level TVirtualX::DrawLine is what you really want?
Did you see root.cern.ch/root/html/TLine.html ?
See $ROOTSYS/tutorials/graphics/canvas.C macro for details.