color codes in reportlabs-python

Viewed 8115

I'm using reportlabs library of python to generate PDF reports. I need to understand which format of color code is needed to be passed.

When I pass RGB code for light green (178,255,102), to the_canvas.setFillColorRGB(178,255,102) it gives me white. And if I provide universal RGB color code for any color, it still gives me the same white color.

If I provide (25,51,0) , it gives me yellow, which is not RGB code for yellow.

How should I provide color codes to the reportlab in order to get the color I wanted. Which format is it using?

2 Answers
Related