views:

43

answers:

1

How can you draw semi-transparent primitives such as filled polygons to a Drawable in GTK?

Its 2010, and I google isn't finding how to put an alpha value into a colour for me. What am I missing?

+4  A: 

Use gtk.gdk.Drawable.cairo_create() and operate on the returned gtk.gdk.CairoContext. See documentation. Cairo is a generic vector 2D library that is used in GTK+ since many versions ago; GDK drawing primitives are deprecated in its favor (though not the whole GDK).

doublep