[cairo-commit] [cairo-www] src/hittestpython.mdwn

Carl Worth cworth at freedesktop.org
Fri Nov 9 07:48:24 PST 2007


 src/hittestpython.mdwn |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

New commits:
commit 18e0613e1826fa1371e2783be0be8b133fda3370
Author: Donn <donn.ingle at gmail.com>
Date:   Fri Nov 9 07:48:23 2007 -0800

    Added GPL

diff --git a/src/hittestpython.mdwn b/src/hittestpython.mdwn
index 3c39c6a..f1c197c 100644
--- a/src/hittestpython.mdwn
+++ b/src/hittestpython.mdwn
@@ -2,8 +2,30 @@
 
 Once you've drawn something and **before** you cr.fill() or cr.stroke(), you can record the path to a list of points for later use. This recipe includes an algorithm to tell whether a point is within that path's area or not. It prints to the console, so it's not exactly bling, but it's pretty nifty for all that. Go see <http://local.wasp.uwa.edu.au/~pbourke/geometry/insidepoly/> for the theory behind the voodoo :)
 
+I am trying to contact the author of the algorithm to double check that it can appear here. Will update.
+
 
     #! /usr/bin/env python
+
+    ##    hittest Copyright  (C)  2007 Donn.C.Ingle
+    ##
+    ##    Contact: donn.ingle at gmail.com - I hope this email lasts.
+    ##
+    ##    This program is free software; you can redistribute it and/or modify
+    ##    it under the terms of the GNU General Public License as published by
+    ##    the Free Software Foundation; either version 2 of the License, or
+    ##     ( at your option )  any later version.
+    ##
+    ##    This program is distributed in the hope that it will be useful,
+    ##    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    ##    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    ##    GNU General Public License for more details.
+    ##
+    ##    You should have received a copy of the GNU General Public License
+    ##    along with this program; if not, write to the Free Software
+    ##    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+    ##
+
     import pygtk
     pygtk.require('2.0')
     import gtk, gobject, cairo


More information about the cairo-commit mailing list