[cairo-commit] pycairo/examples/cairo_snippets/snippets group.py,
NONE, 1.1
Steve Chaplin
commit at pdx.freedesktop.org
Mon May 15 07:24:40 PDT 2006
Committed by: stevech1097
Update of /cvs/cairo/pycairo/examples/cairo_snippets/snippets
In directory kemper:/tmp/cvs-serv3161/examples/cairo_snippets/snippets
Added Files:
group.py
Log Message:
'SC'
--- NEW FILE: group.py ---
# demo/test for group functions
snippet_normalize (cr, width, height)
cr.rectangle (0.1, 0.1, 0.6, 0.6)
cr.set_line_width (0.03)
cr.set_source_rgb (0.8, 0.8, 0.8)
cr.fill()
cr.push_group()
cr.rectangle (0.3, 0.3, 0.6, 0.6)
cr.set_source (cairo.SolidPattern (1, 0, 0))
cr.fill_preserve()
cr.set_source (cairo.SolidPattern (0, 0, 0))
cr.stroke ()
cr.pop_group_to_source()
cr.paint_with_alpha (0.5)
More information about the cairo-commit
mailing list