[reportlab-users] use of RGB colors in RML tables
Andy Robinson
andy at reportlab.com
Mon Sep 29 05:20:22 EDT 2008
2008/9/26 Michael Hearne <mhearne at usgs.gov>:
> Is it possible to specify a background color for a table in RML that uses
> RGB values? If so, can someone provide an example?
> All the examples in the User's Guide use named colors like "cornsilk", etc.
> Thanks,
Hi Michael,
It should accept any of the following values in an attribute:
HTML-like hex codes e.g. '#ddee00'
Pythonic hex code e.g. '0xddee00'
3-tuple with range of 0 to 1 e.g. "(1.0,0.5,1.0)"
4-tuple for CMYK versions of the above
- Andy
More information about the reportlab-users
mailing list