[pygtk] Colors in cairo

Joel Hedlund yohell at ifm.liu.se
Mon Oct 27 03:32:06 WST 2008


M.B. wrote:
> ctx.set_source_rgb(color.red, color.green, color.blue)

color.x are integers in the range 0-65535 and ctx.set_source_rgb() wants 
floats in the range 0.0-1.0.

hth
/Joel


More information about the pygtk mailing list