mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Copy the wxPython demo from Classic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
13
demo/snippets/clip.py
Normal file
13
demo/snippets/clip.py
Normal file
@@ -0,0 +1,13 @@
|
||||
snippet_normalize (cr, width, height)
|
||||
|
||||
cr.arc (0.5, 0.5, 0.3, 0, 2 * M_PI)
|
||||
cr.clip ()
|
||||
|
||||
cr.rectangle (0, 0, 1, 1)
|
||||
cr.fill ()
|
||||
cr.set_source_rgb (0, 1, 0)
|
||||
cr.move_to (0, 0)
|
||||
cr.line_to (1, 1)
|
||||
cr.move_to (1, 0)
|
||||
cr.line_to (0, 1)
|
||||
cr.stroke ()
|
||||
Reference in New Issue
Block a user