Commits

Anonymous committed 15abbc8

Merged changes up to revision 2173

Comments (0)

Files changed (48)

+# Make docs a package that brings up the main page in a web brower when
+# executed.
+#
+# python -m pygame.docs
+
+if __name__ == '__main__':
+    import os
+    pkg_dir = os.path.dirname(os.path.abspath(__file__))
+    main = os.path.join(pkg_dir, '__main__.py')
+    execfile(main)
+
+
+# python -m pygame.docs
+
+import os
+import webbrowser
+try:
+    from urllib.parse import urlunparse, quote
+except ImportError:
+    from urlparse import urlunparse
+    from urllib import quote
+
+def iterpath(path):
+    path, last = os.path.split(path)
+    if last:
+        for p in iterpath(path):
+            yield p
+        yield last
+
+pkg_dir = os.path.dirname(os.path.abspath(__file__))
+main_page = os.path.join(pkg_dir, 'index.html')
+url_path = quote('/'.join(iterpath(main_page)))
+url = urlunparse(('file', '', url_path, '', '', ''))
+webbrowser.open(url)
       <a href="ref/event.html">Event</a>&nbsp;||&nbsp;
       <a href="ref/examples.html">Examples</a>&nbsp;||&nbsp;
       <a href="ref/font.html">Font</a>&nbsp;||&nbsp;
+      <a href="ref/gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
       <a href="ref/image.html">Image</a>&nbsp;||&nbsp;
       <a href="ref/joystick.html">Joystick</a>&nbsp;||&nbsp;
       <a href="ref/key.html">Key</a>&nbsp;||&nbsp;
   <dt><a href="ref/event.html">Event</a></dt><dd> Manage the incoming events from various input devices and the windowing platform.</dd>
   <dt><a href="ref/examples.html">Examples</a></dt><dd> Various programs demonstrating the use of individual pygame modules.</dd>
   <dt><a href="ref/font.html">Font</a></dt><dd> Loading and rendering Truetype fonts.</dd>
+  <dt><a href="ref/gfxdraw.html">Gfxdraw</a></dt><dd> Anti-aliasing draw functions.</dd>
   <dt><a href="ref/image.html">Image</a></dt><dd> Loading, saving, and transferring of surfaces.</dd>
   <dt><a href="ref/joystick.html">Joystick</a></dt><dd> Manage the joystick devices.</dd>
   <dt><a href="ref/key.html">Key</a></dt><dd> Manage the keyboard device.</dd>

docs/ref/camera.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/cdrom.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/color.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/cursors.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/display.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/draw.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/event.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/examples.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/font.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/gfxdraw.html

-
-<html>
-<title>gfxdraw - Pygame Documentation</title>
-<body bgcolor=#aaeebb text=#000000 link=#331111 vlink=#331111>
-
-
-<table cellpadding=0 cellspacing=0 border=0 style='border: 3px solid black;' width='100%'>
-<tr>
-<td bgcolor='#c2fc20' style='padding: 6px;' align=center valign=center><a href='http://www.pygame.org/'><img src='../pygame_tiny.gif' border=0 width=200 height=60></a><br><b>pygame documentation</b></td>
-<td bgcolor='#6aee28' style='border-left: 3px solid black; padding: 6px;' align=center valign=center>
-	||&nbsp;
-	<a href=http://www.pygame.org>Pygame Home</a> &nbsp;||&nbsp;
-	<a href=../index.html>Help Contents</a> &nbsp;||
-	<a href=index.html>Reference Index</a> &nbsp;||
-	<br>&nbsp;<br>
-	
-<a href="camera.html">Camera</a>&nbsp;||&nbsp;
-<a href="cdrom.html">Cdrom</a>&nbsp;||&nbsp;
-<a href="color.html">Color</a>&nbsp;||&nbsp;
-<a href="cursors.html">Cursors</a>&nbsp;||&nbsp;
-<a href="display.html">Display</a>&nbsp;||&nbsp;
-<a href="draw.html">Draw</a>&nbsp;||&nbsp;
-<a href="event.html">Event</a>&nbsp;||&nbsp;
-<a href="examples.html">Examples</a>&nbsp;||&nbsp;
-<a href="font.html">Font</a>&nbsp;||&nbsp;
-<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
-<a href="image.html">Image</a>&nbsp;||&nbsp;
-<a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
-<a href="key.html">Key</a>&nbsp;||&nbsp;
-<a href="locals.html">Locals</a>&nbsp;||&nbsp;
-<a href="mask.html">Mask</a>&nbsp;||&nbsp;
-<a href="mixer.html">Mixer</a>&nbsp;||&nbsp;
-<a href="mouse.html">Mouse</a>&nbsp;||&nbsp;
-<a href="movie.html">Movie</a>&nbsp;||&nbsp;
-<a href="music.html">Music</a>&nbsp;||&nbsp;
-<a href="overlay.html">Overlay</a>&nbsp;||&nbsp;
-<a href="pixelarray.html">Pixelarray</a>&nbsp;||&nbsp;
-<a href="pygame.html">Pygame</a>&nbsp;||&nbsp;
-<a href="rect.html">Rect</a>&nbsp;||&nbsp;
-<a href="scrap.html">Scrap</a>&nbsp;||&nbsp;
-<a href="sndarray.html">Sndarray</a>&nbsp;||&nbsp;
-<a href="sprite.html">Sprite</a>&nbsp;||&nbsp;
-<a href="surface.html">Surface</a>&nbsp;||&nbsp;
-<a href="surfarray.html">Surfarray</a>&nbsp;||&nbsp;
-<a href="tests.html">Tests</a>&nbsp;||&nbsp;
-<a href="time.html">Time</a>&nbsp;||&nbsp;
-<a href="transform.html">Transform</a>
-</td></tr></table>
-<br>
-
-
-<a name="pygame.gfxdraw">
-<big><b>pygame.gfxdraw</big></b><br><ul>
-  <i>pygame module for drawing shapes</i><br>
-<ul><small><table>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.pixel">pygame.gfxdraw.pixel</a> - <font size=-1>place a pixel</font></td><td>place a pixel</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.hline">pygame.gfxdraw.hline</a> - <font size=-1>draw a horizontal line</font></td><td>draw a horizontal line</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.vline">pygame.gfxdraw.vline</a> - <font size=-1>draw a vertical line</font></td><td>draw a vertical line</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.rectangle">pygame.gfxdraw.rectangle</a> - <font size=-1>draw a rectangle</font></td><td>draw a rectangle</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.box">pygame.gfxdraw.box</a> - <font size=-1>draw a box</font></td><td>draw a box</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.line">pygame.gfxdraw.line</a> - <font size=-1>draw a line</font></td><td>draw a line</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.circle">pygame.gfxdraw.circle</a> - <font size=-1>draw a circle</font></td><td>draw a circle</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.arc">pygame.gfxdraw.arc</a> - <font size=-1>draw an arc</font></td><td>draw an arc</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.aacircle">pygame.gfxdraw.aacircle</a> - <font size=-1>draw an anti-aliased circle</font></td><td>draw an anti-aliased circle</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.filled_circle">pygame.gfxdraw.filled_circle</a> - <font size=-1>draw a filled circle</font></td><td>draw a filled circle</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.ellipse">pygame.gfxdraw.ellipse</a> - <font size=-1>draw an ellipse</font></td><td>draw an ellipse</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.aaellipse">pygame.gfxdraw.aaellipse</a> - <font size=-1>draw an anti-aliased ellipse</font></td><td>draw an anti-aliased ellipse</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.filled_ellipse">pygame.gfxdraw.filled_ellipse</a> - <font size=-1>draw a filled ellipse</font></td><td>draw a filled ellipse</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.pie">pygame.gfxdraw.pie</a> - <font size=-1>draw a pie</font></td><td>draw a pie</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.trigon">pygame.gfxdraw.trigon</a> - <font size=-1>draw a triangle</font></td><td>draw a triangle</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.aatrigon">pygame.gfxdraw.aatrigon</a> - <font size=-1>draw an anti-aliased triangle</font></td><td>draw an anti-aliased triangle</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.filled_trigon">pygame.gfxdraw.filled_trigon</a> - <font size=-1>draw a filled trigon</font></td><td>draw a filled trigon</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.polygon">pygame.gfxdraw.polygon</a> - <font size=-1>draw a polygon</font></td><td>draw a polygon</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.aapolygon">pygame.gfxdraw.aapolygon</a> - <font size=-1>draw an anti-aliased polygon</font></td><td>draw an anti-aliased polygon</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.filled_polygon">pygame.gfxdraw.filled_polygon</a> - <font size=-1>draw a filled polygon</font></td><td>draw a filled polygon</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.textured_polygon">pygame.gfxdraw.textured_polygon</a> - <font size=-1>draw a textured polygon</font></td><td>draw a textured polygon</td></tr>
-  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.bezier">pygame.gfxdraw.bezier</a> - <font size=-1>draw a bezier curve</font></td><td>draw a bezier curve</td></tr>
-</table></small></ul>
-<p>Wraps SDL_gfx primatives. </p>
-<p>Most of the functions accept a color argument that is an <tt>RGB</tt> triplet. These can also accept an <tt>RGBA</tt> quadruplet. The color argument can also be an integer pixel value that is already mapped to the Surface's pixel format. </p>
-<p>For all functions the arguments are strictly positional. Only integers are accepted for coordinates and radii. </p>
-<!--COMMENTS:pygame.gfxdraw--> &nbsp;<br> 
-
-
-<a name="pygame.gfxdraw.pixel">
-<big><b>pygame.gfxdraw.pixel</big></b><br><ul>
-  <i>place a pixel</i><br>
-  <tt>pygame.gfxdraw.pixel(surface, x, y, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.pixel--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.hline">
-<big><b>pygame.gfxdraw.hline</big></b><br><ul>
-  <i>draw a horizontal line</i><br>
-  <tt>pygame.gfxdraw.hline(surface, x1, x2, y, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.hline--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.vline">
-<big><b>pygame.gfxdraw.vline</big></b><br><ul>
-  <i>draw a vertical line</i><br>
-  <tt>pgyame.gfxdraw.vline(surface, x, y1, y2, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.vline--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.rectangle">
-<big><b>pygame.gfxdraw.rectangle</big></b><br><ul>
-  <i>draw a rectangle</i><br>
-  <tt>pgyame.gfxdraw.rectangle(surface, rect, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.rectangle--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.box">
-<big><b>pygame.gfxdraw.box</big></b><br><ul>
-  <i>draw a box</i><br>
-  <tt>pgyame.gfxdraw.box(surface, rect, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.box--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.line">
-<big><b>pygame.gfxdraw.line</big></b><br><ul>
-  <i>draw a line</i><br>
-  <tt>pgyame.gfxdraw.line(surface, x1, y1, x2, y2, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.line--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.circle">
-<big><b>pygame.gfxdraw.circle</big></b><br><ul>
-  <i>draw a circle</i><br>
-  <tt>pgyame.gfxdraw.circle(surface, x, y, r, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.circle--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.arc">
-<big><b>pygame.gfxdraw.arc</big></b><br><ul>
-  <i>draw an arc</i><br>
-  <tt>pgyame.gfxdraw.arc(surface, x, y, r, start, end, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.arc--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.aacircle">
-<big><b>pygame.gfxdraw.aacircle</big></b><br><ul>
-  <i>draw an anti-aliased circle</i><br>
-  <tt>pgyame.gfxdraw.aacircle(surface, x, y, r, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.aacircle--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.filled_circle">
-<big><b>pygame.gfxdraw.filled_circle</big></b><br><ul>
-  <i>draw a filled circle</i><br>
-  <tt>pgyame.gfxdraw.filled_circle(surface, x, y, r, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.filled_circle--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.ellipse">
-<big><b>pygame.gfxdraw.ellipse</big></b><br><ul>
-  <i>draw an ellipse</i><br>
-  <tt>pgyame.gfxdraw.ellipse(surface, x, y, rx, ry, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.ellipse--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.aaellipse">
-<big><b>pygame.gfxdraw.aaellipse</big></b><br><ul>
-  <i>draw an anti-aliased ellipse</i><br>
-  <tt>pgyame.gfxdraw.aaellipse(surface, x, y, rx, ry, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.aaellipse--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.filled_ellipse">
-<big><b>pygame.gfxdraw.filled_ellipse</big></b><br><ul>
-  <i>draw a filled ellipse</i><br>
-  <tt>pgyame.gfxdraw.filled_ellipse(surface, x, y, rx, ry, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.filled_ellipse--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.pie">
-<big><b>pygame.gfxdraw.pie</big></b><br><ul>
-  <i>draw a pie</i><br>
-  <tt>pgyame.gfxdraw.pie(surface, x, y, r, start, end, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.pie--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.trigon">
-<big><b>pygame.gfxdraw.trigon</big></b><br><ul>
-  <i>draw a triangle</i><br>
-  <tt>pgyame.gfxdraw.trigon(surface, x1, y1, x2, y2, x3, y3, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.trigon--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.aatrigon">
-<big><b>pygame.gfxdraw.aatrigon</big></b><br><ul>
-  <i>draw an anti-aliased triangle</i><br>
-  <tt>pgyame.gfxdraw.aatrigon(surface, x1, y1, x2, y2, x3, y3, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.aatrigon--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.filled_trigon">
-<big><b>pygame.gfxdraw.filled_trigon</big></b><br><ul>
-  <i>draw a filled trigon</i><br>
-  <tt>pgyame.gfxdraw.filled_trigon(surface, x1, y1, x3, y2, x3, y3, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.filled_trigon--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.polygon">
-<big><b>pygame.gfxdraw.polygon</big></b><br><ul>
-  <i>draw a polygon</i><br>
-  <tt>pgyame.gfxdraw.polygon(surface, points, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.polygon--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.aapolygon">
-<big><b>pygame.gfxdraw.aapolygon</big></b><br><ul>
-  <i>draw an anti-aliased polygon</i><br>
-  <tt>pgyame.gfxdraw.aapolygon(surface, points, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.aapolygon--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.filled_polygon">
-<big><b>pygame.gfxdraw.filled_polygon</big></b><br><ul>
-  <i>draw a filled polygon</i><br>
-  <tt>pgyame.gfxdraw.filled_polygon(surface, points, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.filled_polygon--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.textured_polygon">
-<big><b>pygame.gfxdraw.textured_polygon</big></b><br><ul>
-  <i>draw a textured polygon</i><br>
-  <tt>pgyame.gfxdraw.textured_polygon(surface, points, texture, tx, ty): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.textured_polygon--> &nbsp;<br> 
-<br></ul>
-
-
-<a name="pygame.gfxdraw.bezier">
-<big><b>pygame.gfxdraw.bezier</big></b><br><ul>
-  <i>draw a bezier curve</i><br>
-  <tt>pgyame.gfxdraw.bezier(surface, points, steps, color): return None</tt><br>
- &nbsp;<br> 
-<!--COMMENTS:pygame.gfxdraw.bezier--> &nbsp;<br> 
-<br></ul>
-<br></ul>
-
-</body></html>
+
+<html>
+<title>gfxdraw - Pygame Documentation</title>
+<body bgcolor=#aaeebb text=#000000 link=#331111 vlink=#331111>
+
+
+<table cellpadding=0 cellspacing=0 border=0 style='border: 3px solid black;' width='100%'>
+<tr>
+<td bgcolor='#c2fc20' style='padding: 6px;' align=center valign=center><a href='http://www.pygame.org/'><img src='../pygame_tiny.gif' border=0 width=200 height=60></a><br><b>pygame documentation</b></td>
+<td bgcolor='#6aee28' style='border-left: 3px solid black; padding: 6px;' align=center valign=center>
+	||&nbsp;
+	<a href=http://www.pygame.org>Pygame Home</a> &nbsp;||&nbsp;
+	<a href=../index.html>Help Contents</a> &nbsp;||
+	<a href=index.html>Reference Index</a> &nbsp;||
+	<br>&nbsp;<br>
+	
+<a href="camera.html">Camera</a>&nbsp;||&nbsp;
+<a href="cdrom.html">Cdrom</a>&nbsp;||&nbsp;
+<a href="color.html">Color</a>&nbsp;||&nbsp;
+<a href="cursors.html">Cursors</a>&nbsp;||&nbsp;
+<a href="display.html">Display</a>&nbsp;||&nbsp;
+<a href="draw.html">Draw</a>&nbsp;||&nbsp;
+<a href="event.html">Event</a>&nbsp;||&nbsp;
+<a href="examples.html">Examples</a>&nbsp;||&nbsp;
+<a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
+<a href="image.html">Image</a>&nbsp;||&nbsp;
+<a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
+<a href="key.html">Key</a>&nbsp;||&nbsp;
+<a href="locals.html">Locals</a>&nbsp;||&nbsp;
+<a href="mask.html">Mask</a>&nbsp;||&nbsp;
+<a href="midi.html">Midi</a>&nbsp;||&nbsp;
+<a href="mixer.html">Mixer</a>&nbsp;||&nbsp;
+<a href="mouse.html">Mouse</a>&nbsp;||&nbsp;
+<a href="movie.html">Movie</a>&nbsp;||&nbsp;
+<a href="music.html">Music</a>&nbsp;||&nbsp;
+<a href="overlay.html">Overlay</a>&nbsp;||&nbsp;
+<a href="pixelarray.html">Pixelarray</a>&nbsp;||&nbsp;
+<a href="pygame.html">Pygame</a>&nbsp;||&nbsp;
+<a href="rect.html">Rect</a>&nbsp;||&nbsp;
+<a href="scrap.html">Scrap</a>&nbsp;||&nbsp;
+<a href="sndarray.html">Sndarray</a>&nbsp;||&nbsp;
+<a href="sprite.html">Sprite</a>&nbsp;||&nbsp;
+<a href="surface.html">Surface</a>&nbsp;||&nbsp;
+<a href="surfarray.html">Surfarray</a>&nbsp;||&nbsp;
+<a href="tests.html">Tests</a>&nbsp;||&nbsp;
+<a href="time.html">Time</a>&nbsp;||&nbsp;
+<a href="transform.html">Transform</a>
+</td></tr></table>
+<br>
+
+
+<a name="pygame.gfxdraw">
+<big><b>pygame.gfxdraw</big></b><br><ul>
+  <i>pygame module for drawing shapes</i><br>
+<ul><small><table>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.pixel">pygame.gfxdraw.pixel</a> - <font size=-1>place a pixel</font></td><td>place a pixel</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.hline">pygame.gfxdraw.hline</a> - <font size=-1>draw a horizontal line</font></td><td>draw a horizontal line</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.vline">pygame.gfxdraw.vline</a> - <font size=-1>draw a vertical line</font></td><td>draw a vertical line</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.rectangle">pygame.gfxdraw.rectangle</a> - <font size=-1>draw a rectangle</font></td><td>draw a rectangle</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.box">pygame.gfxdraw.box</a> - <font size=-1>draw a box</font></td><td>draw a box</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.line">pygame.gfxdraw.line</a> - <font size=-1>draw a line</font></td><td>draw a line</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.circle">pygame.gfxdraw.circle</a> - <font size=-1>draw a circle</font></td><td>draw a circle</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.arc">pygame.gfxdraw.arc</a> - <font size=-1>draw an arc</font></td><td>draw an arc</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.aacircle">pygame.gfxdraw.aacircle</a> - <font size=-1>draw an anti-aliased circle</font></td><td>draw an anti-aliased circle</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.filled_circle">pygame.gfxdraw.filled_circle</a> - <font size=-1>draw a filled circle</font></td><td>draw a filled circle</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.ellipse">pygame.gfxdraw.ellipse</a> - <font size=-1>draw an ellipse</font></td><td>draw an ellipse</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.aaellipse">pygame.gfxdraw.aaellipse</a> - <font size=-1>draw an anti-aliased ellipse</font></td><td>draw an anti-aliased ellipse</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.filled_ellipse">pygame.gfxdraw.filled_ellipse</a> - <font size=-1>draw a filled ellipse</font></td><td>draw a filled ellipse</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.pie">pygame.gfxdraw.pie</a> - <font size=-1>draw a pie</font></td><td>draw a pie</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.trigon">pygame.gfxdraw.trigon</a> - <font size=-1>draw a triangle</font></td><td>draw a triangle</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.aatrigon">pygame.gfxdraw.aatrigon</a> - <font size=-1>draw an anti-aliased triangle</font></td><td>draw an anti-aliased triangle</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.filled_trigon">pygame.gfxdraw.filled_trigon</a> - <font size=-1>draw a filled trigon</font></td><td>draw a filled trigon</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.polygon">pygame.gfxdraw.polygon</a> - <font size=-1>draw a polygon</font></td><td>draw a polygon</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.aapolygon">pygame.gfxdraw.aapolygon</a> - <font size=-1>draw an anti-aliased polygon</font></td><td>draw an anti-aliased polygon</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.filled_polygon">pygame.gfxdraw.filled_polygon</a> - <font size=-1>draw a filled polygon</font></td><td>draw a filled polygon</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.textured_polygon">pygame.gfxdraw.textured_polygon</a> - <font size=-1>draw a textured polygon</font></td><td>draw a textured polygon</td></tr>
+  <tr><td><a href="gfxdraw.html#pygame.gfxdraw.bezier">pygame.gfxdraw.bezier</a> - <font size=-1>draw a bezier curve</font></td><td>draw a bezier curve</td></tr>
+</table></small></ul>
+<p>Wraps SDL_gfx primatives. </p>
+<p>Most of the functions accept a color argument that is an <tt>RGB</tt> triplet. These can also accept an <tt>RGBA</tt> quadruplet. The color argument can also be an integer pixel value that is already mapped to the Surface's pixel format. </p>
+<p>For all functions the arguments are strictly positional. Only integers are accepted for coordinates and radii. </p>
+<!--COMMENTS:pygame.gfxdraw--> &nbsp;<br> 
+
+
+<a name="pygame.gfxdraw.pixel">
+<big><b>pygame.gfxdraw.pixel</big></b><br><ul>
+  <i>place a pixel</i><br>
+  <tt>pygame.gfxdraw.pixel(surface, x, y, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.pixel--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.hline">
+<big><b>pygame.gfxdraw.hline</big></b><br><ul>
+  <i>draw a horizontal line</i><br>
+  <tt>pygame.gfxdraw.hline(surface, x1, x2, y, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.hline--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.vline">
+<big><b>pygame.gfxdraw.vline</big></b><br><ul>
+  <i>draw a vertical line</i><br>
+  <tt>pgyame.gfxdraw.vline(surface, x, y1, y2, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.vline--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.rectangle">
+<big><b>pygame.gfxdraw.rectangle</big></b><br><ul>
+  <i>draw a rectangle</i><br>
+  <tt>pgyame.gfxdraw.rectangle(surface, rect, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.rectangle--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.box">
+<big><b>pygame.gfxdraw.box</big></b><br><ul>
+  <i>draw a box</i><br>
+  <tt>pgyame.gfxdraw.box(surface, rect, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.box--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.line">
+<big><b>pygame.gfxdraw.line</big></b><br><ul>
+  <i>draw a line</i><br>
+  <tt>pgyame.gfxdraw.line(surface, x1, y1, x2, y2, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.line--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.circle">
+<big><b>pygame.gfxdraw.circle</big></b><br><ul>
+  <i>draw a circle</i><br>
+  <tt>pgyame.gfxdraw.circle(surface, x, y, r, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.circle--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.arc">
+<big><b>pygame.gfxdraw.arc</big></b><br><ul>
+  <i>draw an arc</i><br>
+  <tt>pgyame.gfxdraw.arc(surface, x, y, r, start, end, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.arc--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.aacircle">
+<big><b>pygame.gfxdraw.aacircle</big></b><br><ul>
+  <i>draw an anti-aliased circle</i><br>
+  <tt>pgyame.gfxdraw.aacircle(surface, x, y, r, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.aacircle--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.filled_circle">
+<big><b>pygame.gfxdraw.filled_circle</big></b><br><ul>
+  <i>draw a filled circle</i><br>
+  <tt>pgyame.gfxdraw.filled_circle(surface, x, y, r, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.filled_circle--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.ellipse">
+<big><b>pygame.gfxdraw.ellipse</big></b><br><ul>
+  <i>draw an ellipse</i><br>
+  <tt>pgyame.gfxdraw.ellipse(surface, x, y, rx, ry, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.ellipse--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.aaellipse">
+<big><b>pygame.gfxdraw.aaellipse</big></b><br><ul>
+  <i>draw an anti-aliased ellipse</i><br>
+  <tt>pgyame.gfxdraw.aaellipse(surface, x, y, rx, ry, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.aaellipse--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.filled_ellipse">
+<big><b>pygame.gfxdraw.filled_ellipse</big></b><br><ul>
+  <i>draw a filled ellipse</i><br>
+  <tt>pgyame.gfxdraw.filled_ellipse(surface, x, y, rx, ry, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.filled_ellipse--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.pie">
+<big><b>pygame.gfxdraw.pie</big></b><br><ul>
+  <i>draw a pie</i><br>
+  <tt>pgyame.gfxdraw.pie(surface, x, y, r, start, end, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.pie--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.trigon">
+<big><b>pygame.gfxdraw.trigon</big></b><br><ul>
+  <i>draw a triangle</i><br>
+  <tt>pgyame.gfxdraw.trigon(surface, x1, y1, x2, y2, x3, y3, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.trigon--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.aatrigon">
+<big><b>pygame.gfxdraw.aatrigon</big></b><br><ul>
+  <i>draw an anti-aliased triangle</i><br>
+  <tt>pgyame.gfxdraw.aatrigon(surface, x1, y1, x2, y2, x3, y3, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.aatrigon--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.filled_trigon">
+<big><b>pygame.gfxdraw.filled_trigon</big></b><br><ul>
+  <i>draw a filled trigon</i><br>
+  <tt>pgyame.gfxdraw.filled_trigon(surface, x1, y1, x3, y2, x3, y3, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.filled_trigon--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.polygon">
+<big><b>pygame.gfxdraw.polygon</big></b><br><ul>
+  <i>draw a polygon</i><br>
+  <tt>pgyame.gfxdraw.polygon(surface, points, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.polygon--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.aapolygon">
+<big><b>pygame.gfxdraw.aapolygon</big></b><br><ul>
+  <i>draw an anti-aliased polygon</i><br>
+  <tt>pgyame.gfxdraw.aapolygon(surface, points, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.aapolygon--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.filled_polygon">
+<big><b>pygame.gfxdraw.filled_polygon</big></b><br><ul>
+  <i>draw a filled polygon</i><br>
+  <tt>pgyame.gfxdraw.filled_polygon(surface, points, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.filled_polygon--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.textured_polygon">
+<big><b>pygame.gfxdraw.textured_polygon</big></b><br><ul>
+  <i>draw a textured polygon</i><br>
+  <tt>pgyame.gfxdraw.textured_polygon(surface, points, texture, tx, ty): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.textured_polygon--> &nbsp;<br> 
+<br></ul>
+
+
+<a name="pygame.gfxdraw.bezier">
+<big><b>pygame.gfxdraw.bezier</big></b><br><ul>
+  <i>draw a bezier curve</i><br>
+  <tt>pgyame.gfxdraw.bezier(surface, points, steps, color): return None</tt><br>
+ &nbsp;<br> 
+<!--COMMENTS:pygame.gfxdraw.bezier--> &nbsp;<br> 
+<br></ul>
+<br></ul>
+
+</body></html>

docs/ref/image.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/index.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;
 <li><a href="pygame.html#pygame.get_error">pygame.get_error</a> - <font size=-1>get the current error message</font></li>
 <li><a href="pygame.html#pygame.get_sdl_byteorder">pygame.get_sdl_byteorder</a> - <font size=-1>get the byte order of SDL</font></li>
 <li><a href="pygame.html#pygame.get_sdl_version">pygame.get_sdl_version</a> - <font size=-1>get the version number of SDL</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw">pygame.gfxdraw</a> - <font size=-1>pygame module for drawing shapes</font></li>
+<ul>
+<li><a href="gfxdraw.html#pygame.gfxdraw.aacircle">pygame.gfxdraw.aacircle</a> - <font size=-1>draw an anti-aliased circle</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.aaellipse">pygame.gfxdraw.aaellipse</a> - <font size=-1>draw an anti-aliased ellipse</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.aapolygon">pygame.gfxdraw.aapolygon</a> - <font size=-1>draw an anti-aliased polygon</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.aatrigon">pygame.gfxdraw.aatrigon</a> - <font size=-1>draw an anti-aliased triangle</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.arc">pygame.gfxdraw.arc</a> - <font size=-1>draw an arc</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.bezier">pygame.gfxdraw.bezier</a> - <font size=-1>draw a bezier curve</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.box">pygame.gfxdraw.box</a> - <font size=-1>draw a box</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.circle">pygame.gfxdraw.circle</a> - <font size=-1>draw a circle</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.ellipse">pygame.gfxdraw.ellipse</a> - <font size=-1>draw an ellipse</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.filled_circle">pygame.gfxdraw.filled_circle</a> - <font size=-1>draw a filled circle</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.filled_ellipse">pygame.gfxdraw.filled_ellipse</a> - <font size=-1>draw a filled ellipse</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.filled_polygon">pygame.gfxdraw.filled_polygon</a> - <font size=-1>draw a filled polygon</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.filled_trigon">pygame.gfxdraw.filled_trigon</a> - <font size=-1>draw a filled trigon</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.hline">pygame.gfxdraw.hline</a> - <font size=-1>draw a horizontal line</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.line">pygame.gfxdraw.line</a> - <font size=-1>draw a line</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.pie">pygame.gfxdraw.pie</a> - <font size=-1>draw a pie</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.pixel">pygame.gfxdraw.pixel</a> - <font size=-1>place a pixel</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.polygon">pygame.gfxdraw.polygon</a> - <font size=-1>draw a polygon</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.rectangle">pygame.gfxdraw.rectangle</a> - <font size=-1>draw a rectangle</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.textured_polygon">pygame.gfxdraw.textured_polygon</a> - <font size=-1>draw a textured polygon</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.trigon">pygame.gfxdraw.trigon</a> - <font size=-1>draw a triangle</font></li>
+<li><a href="gfxdraw.html#pygame.gfxdraw.vline">pygame.gfxdraw.vline</a> - <font size=-1>draw a vertical line</font></li>
+</ul>
 <li><a href="image.html#pygame.image">pygame.image</a> - <font size=-1>pygame module for image transfer</font></li>
 <ul>
 <li><a href="image.html#pygame.image.frombuffer">pygame.image.frombuffer</a> - <font size=-1>create a new Surface that shares data inside a string buffer</font></li>

docs/ref/joystick.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/key.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/locals.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/mask.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/midi.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/mixer.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/mouse.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/movie.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/music.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/overlay.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/pixelarray.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/pygame.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/rect.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/scrap.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/sndarray.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/sprite.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/surface.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/surfarray.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/tests.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/time.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;

docs/ref/transform.html

 <a href="event.html">Event</a>&nbsp;||&nbsp;
 <a href="examples.html">Examples</a>&nbsp;||&nbsp;
 <a href="font.html">Font</a>&nbsp;||&nbsp;
+<a href="gfxdraw.html">Gfxdraw</a>&nbsp;||&nbsp;
 <a href="image.html">Image</a>&nbsp;||&nbsp;
 <a href="joystick.html">Joystick</a>&nbsp;||&nbsp;
 <a href="key.html">Key</a>&nbsp;||&nbsp;
Add a comment to this file

examples/data/house_lo.mp3

Binary file modified.

 
 """
 
-import test.go
+import test.__main__
 
                        'pygame.tests.run_tests__tests.exclude',
                        'pygame.tests.run_tests__tests.timeout',
                        'pygame.tests.run_tests__tests.everything',
+                       'pygame.docs',
                        'pygame.examples'],
        "package_dir": {'pygame': 'lib',
                        'pygame.threads': 'lib/threads',
                        'pygame.gp2x': 'lib/gp2x',
                        'pygame.tests': 'test',
+                       'pygame.docs': 'docs',
                        'pygame.examples': 'examples'},
        "headers":     headers,
        "ext_modules": extensions,
 
 Pygame currently supports only Linux and v4l2 cameras.
 
+EXPERIMENTAL!: meaning this api may change, or dissapear in later 
+pygame releases.  If you use this, your code will break with the 
+next pygame release.
+
+
+
 The Bayer to RGB function is based on:
  Sonix SN9C101 based webcam basic I/F routines
  Copyright (C) 2004 Takafumi Mizuno <taka-qce@ls-a.jp>
  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  SUCH DAMAGE.
 
+
+New in pygame 1.9.0.
 <SECTION>
 
 colorspace
+pygame.gfxdraw
+pygame module for drawing shapes
+
+Wraps SDL_gfx primatives.
+
+EXPERIMENTAL!: meaning this api may change, or dissapear in later 
+pygame releases.  If you use this, your code will break with the 
+next pygame release.
+
+
+Most of the functions accept a color argument that is an RGB triplet.
+These can also accept an RGBA quadruplet. The color argument can also be an
+integer pixel value that is already mapped to the Surface's pixel format.
+
+For all functions the arguments are strictly positional. Only integers are
+accepted for coordinates and radii.
+
+New in pygame 1.9.0.
+<SECTION>
+
+
+
+pixel
+place a pixel
+pygame.gfxdraw.pixel(surface, x, y, color): return None
+<END>
+
+
+
+hline
+draw a horizontal line
+pygame.gfxdraw.hline(surface, x1, x2, y, color): return None
+<END>
+
+
+
+vline
+draw a vertical line
+pgyame.gfxdraw.vline(surface, x, y1, y2, color): return None
+<END>
+
+
+
+rectangle
+draw a rectangle
+pgyame.gfxdraw.rectangle(surface, rect, color): return None
+<END>
+
+
+
+box
+draw a box
+pgyame.gfxdraw.box(surface, rect, color): return None
+<END>
+
+
+
+line
+draw a line
+pgyame.gfxdraw.line(surface, x1, y1, x2, y2, color): return None
+<END>
+
+
+
+circle
+draw a circle
+pgyame.gfxdraw.circle(surface, x, y, r, color): return None
+<END>
+
+
+
+arc
+draw an arc
+pgyame.gfxdraw.arc(surface, x, y, r, start, end, color): return None
+<END>
+
+
+
+aacircle
+draw an anti-aliased circle
+pgyame.gfxdraw.aacircle(surface, x, y, r, color): return None
+<END>
+
+
+
+filled_circle
+draw a filled circle
+pgyame.gfxdraw.filled_circle(surface, x, y, r, color): return None
+<END>
+
+
+
+ellipse
+draw an ellipse
+pgyame.gfxdraw.ellipse(surface, x, y, rx, ry, color): return None
+<END>
+
+
+
+aaellipse
+draw an anti-aliased ellipse
+pgyame.gfxdraw.aaellipse(surface, x, y, rx, ry, color): return None
+<END>
+
+
+
+filled_ellipse
+draw a filled ellipse
+pgyame.gfxdraw.filled_ellipse(surface, x, y, rx, ry, color): return None
+<END>
+
+
+
+pie
+draw a pie
+pgyame.gfxdraw.pie(surface, x, y, r, start, end, color): return None
+<END>
+
+
+
+trigon
+draw a triangle
+pgyame.gfxdraw.trigon(surface, x1, y1, x2, y2, x3, y3, color): return None
+<END>
+
+
+
+aatrigon
+draw an anti-aliased triangle
+pgyame.gfxdraw.aatrigon(surface, x1, y1, x2, y2, x3, y3, color): return None
+<END>
+
+
+
+filled_trigon
+draw a filled trigon
+pgyame.gfxdraw.filled_trigon(surface, x1, y1, x3, y2, x3, y3, color): return None
+<END>
+
+
+
+polygon
+draw a polygon
+pgyame.gfxdraw.polygon(surface, points, color): return None
+<END>
+
+
+
+aapolygon
+draw an anti-aliased polygon
+pgyame.gfxdraw.aapolygon(surface, points, color): return None
+<END>
+
+
+
+filled_polygon
+draw a filled polygon
+pgyame.gfxdraw.filled_polygon(surface, points, color): return None
+<END>
+
+
+
+textured_polygon
+draw a textured polygon
+pgyame.gfxdraw.textured_polygon(surface, points, texture, tx, ty): return None
+<END>
+
+
+
+bezier
+draw a bezier curve
+pgyame.gfxdraw.bezier(surface, points, steps, color): return None
+<END>
+<END>
 
 The difference between the music playback and regular Sound playback is that
 the music is streamed, and never actually loaded all at once. The mixer system
-only supports a single music stream at once. 
+only supports a single music stream at once.
+
+Be aware that MP3 support is limited. On some systems an unsupported format
+can crash the program, e.g. Debian Linux. Consider using OGG instead.
 <SECTION>
 
 
 
 #define DOC_FONTGETDESCENT "Font.get_descent(): return int\nget the descent of the font"
 
+#define DOC_PYGAMEGFXDRAW "pygame module for drawing shapes"
+
+#define DOC_PYGAMEGFXDRAWPIXEL "pygame.gfxdraw.pixel(surface, x, y, color): return None\nplace a pixel"
+
+#define DOC_PYGAMEGFXDRAWHLINE "pygame.gfxdraw.hline(surface, x1, x2, y, color): return None\ndraw a horizontal line"
+
+#define DOC_PYGAMEGFXDRAWVLINE "pgyame.gfxdraw.vline(surface, x, y1, y2, color): return None\ndraw a vertical line"
+
+#define DOC_PYGAMEGFXDRAWRECTANGLE "pgyame.gfxdraw.rectangle(surface, rect, color): return None\ndraw a rectangle"
+
+#define DOC_PYGAMEGFXDRAWBOX "pgyame.gfxdraw.box(surface, rect, color): return None\ndraw a box"
+
+#define DOC_PYGAMEGFXDRAWLINE "pgyame.gfxdraw.line(surface, x1, y1, x2, y2, color): return None\ndraw a line"
+
+#define DOC_PYGAMEGFXDRAWCIRCLE "pgyame.gfxdraw.circle(surface, x, y, r, color): return None\ndraw a circle"
+
+#define DOC_PYGAMEGFXDRAWARC "pgyame.gfxdraw.arc(surface, x, y, r, start, end, color): return None\ndraw an arc"
+
+#define DOC_PYGAMEGFXDRAWAACIRCLE "pgyame.gfxdraw.aacircle(surface, x, y, r, color): return None\ndraw an anti-aliased circle"
+
+#define DOC_PYGAMEGFXDRAWFILLEDCIRCLE "pgyame.gfxdraw.filled_circle(surface, x, y, r, color): return None\ndraw a filled circle"
+
+#define DOC_PYGAMEGFXDRAWELLIPSE "pgyame.gfxdraw.ellipse(surface, x, y, rx, ry, color): return None\ndraw an ellipse"
+
+#define DOC_PYGAMEGFXDRAWAAELLIPSE "pgyame.gfxdraw.aaellipse(surface, x, y, rx, ry, color): return None\ndraw an anti-aliased ellipse"
+
+#define DOC_PYGAMEGFXDRAWFILLEDELLIPSE "pgyame.gfxdraw.filled_ellipse(surface, x, y, rx, ry, color): return None\ndraw a filled ellipse"
+
+#define DOC_PYGAMEGFXDRAWPIE "pgyame.gfxdraw.pie(surface, x, y, r, start, end, color): return None\ndraw a pie"
+
+#define DOC_PYGAMEGFXDRAWTRIGON "pgyame.gfxdraw.trigon(surface, x1, y1, x2, y2, x3, y3, color): return None\ndraw a triangle"
+
+#define DOC_PYGAMEGFXDRAWAATRIGON "pgyame.gfxdraw.aatrigon(surface, x1, y1, x2, y2, x3, y3, color): return None\ndraw an anti-aliased triangle"
+
+#define DOC_PYGAMEGFXDRAWFILLEDTRIGON "pgyame.gfxdraw.filled_trigon(surface, x1, y1, x3, y2, x3, y3, color): return None\ndraw a filled trigon"
+
+#define DOC_PYGAMEGFXDRAWPOLYGON "pgyame.gfxdraw.polygon(surface, points, color): return None\ndraw a polygon"
+
+#define DOC_PYGAMEGFXDRAWAAPOLYGON "pgyame.gfxdraw.aapolygon(surface, points, color): return None\ndraw an anti-aliased polygon"
+
+#define DOC_PYGAMEGFXDRAWFILLEDPOLYGON "pgyame.gfxdraw.filled_polygon(surface, points, color): return None\ndraw a filled polygon"
+
+#define DOC_PYGAMEGFXDRAWTEXTUREDPOLYGON "pgyame.gfxdraw.textured_polygon(surface, points, texture, tx, ty): return None\ndraw a textured polygon"
+
+#define DOC_PYGAMEGFXDRAWBEZIER "pgyame.gfxdraw.bezier(surface, points, steps, color): return None\ndraw a bezier curve"
+
 #define DOC_PYGAMEIMAGE "pygame module for image transfer"
 
 #define DOC_PYGAMEIMAGELOAD "pygame.image.load(filename): return Surface\npygame.image.load(fileobj, namehint=""): return Surface\nload new image from a file"
 
 
 
+pygame.gfxdraw
+ pygame module for drawing shapes
+
+
+
+pygame.gfxdraw.pixel
+ pygame.gfxdraw.pixel(surface, x, y, color): return None
+place a pixel
+
+
+
+pygame.gfxdraw.hline
+ pygame.gfxdraw.hline(surface, x1, x2, y, color): return None
+draw a horizontal line
+
+
+
+pygame.gfxdraw.vline
+ pgyame.gfxdraw.vline(surface, x, y1, y2, color): return None
+draw a vertical line
+
+
+
+pygame.gfxdraw.rectangle
+ pgyame.gfxdraw.rectangle(surface, rect, color): return None
+draw a rectangle
+
+
+
+pygame.gfxdraw.box
+ pgyame.gfxdraw.box(surface, rect, color): return None
+draw a box
+
+
+
+pygame.gfxdraw.line
+ pgyame.gfxdraw.line(surface, x1, y1, x2, y2, color): return None
+draw a line
+
+
+
+pygame.gfxdraw.circle
+ pgyame.gfxdraw.circle(surface, x, y, r, color): return None
+draw a circle
+
+
+
+pygame.gfxdraw.arc
+ pgyame.gfxdraw.arc(surface, x, y, r, start, end, color): return None
+draw an arc
+
+
+
+pygame.gfxdraw.aacircle
+ pgyame.gfxdraw.aacircle(surface, x, y, r, color): return None
+draw an anti-aliased circle
+
+
+
+pygame.gfxdraw.filled_circle
+ pgyame.gfxdraw.filled_circle(surface, x, y, r, color): return None
+draw a filled circle
+
+
+
+pygame.gfxdraw.ellipse
+ pgyame.gfxdraw.ellipse(surface, x, y, rx, ry, color): return None
+draw an ellipse
+
+
+
+pygame.gfxdraw.aaellipse
+ pgyame.gfxdraw.aaellipse(surface, x, y, rx, ry, color): return None
+draw an anti-aliased ellipse
+
+
+
+pygame.gfxdraw.filled_ellipse
+ pgyame.gfxdraw.filled_ellipse(surface, x, y, rx, ry, color): return None
+draw a filled ellipse
+
+
+
+pygame.gfxdraw.pie
+ pgyame.gfxdraw.pie(surface, x, y, r, start, end, color): return None
+draw a pie
+
+
+
+pygame.gfxdraw.trigon
+ pgyame.gfxdraw.trigon(surface, x1, y1, x2, y2, x3, y3, color): return None
+draw a triangle
+
+
+
+pygame.gfxdraw.aatrigon
+ pgyame.gfxdraw.aatrigon(surface, x1, y1, x2, y2, x3, y3, color): return None
+draw an anti-aliased triangle
+
+
+
+pygame.gfxdraw.filled_trigon
+ pgyame.gfxdraw.filled_trigon(surface, x1, y1, x3, y2, x3, y3, color): return None
+draw a filled trigon
+
+
+
+pygame.gfxdraw.polygon
+ pgyame.gfxdraw.polygon(surface, points, color): return None
+draw a polygon
+
+
+
+pygame.gfxdraw.aapolygon
+ pgyame.gfxdraw.aapolygon(surface, points, color): return None
+draw an anti-aliased polygon
+
+
+
+pygame.gfxdraw.filled_polygon
+ pgyame.gfxdraw.filled_polygon(surface, points, color): return None
+draw a filled polygon
+
+
+
+pygame.gfxdraw.textured_polygon
+ pgyame.gfxdraw.textured_polygon(surface, points, texture, tx, ty): return None
+draw a textured polygon
+
+
+
+pygame.gfxdraw.bezier
+ pgyame.gfxdraw.bezier(surface, points, steps, color): return None
+draw a bezier curve
+
+
+
 pygame.image
  pygame module for image transfer
 
 pygame.scrap
 pygame module for clipboard support.
 
+
+EXPERIMENTAL!: meaning this api may change, or dissapear in later 
+pygame releases.  If you use this, your code will break with the 
+next pygame release.
+
+
 The scrap module is for getting and putting stuff from the clipboard.
 So you can copy and paste things between pygame, and other application
 types. It defines some basic own data types 
 can only be used by applications, which query the clipboard for the
 "own_data" type.
 
-EXPERIMENTAL!
 
 New in pygame 1.8. Only works for Windows, X11 and Mac OS X so far.  On
 Mac OSX only text works at the moment - other types will be supported in
 A quick way to run the test suite package from the command line
 is by importing the go submodule:
 
-python -c "import pygame.tests.go" [&lt;test options&gt;]
+python -m "import pygame.tests" [<test options>]
 
 Command line option --help displays a usage message. Available options
 correspond to the pygame.tests.run arguments.
 individual parts of Pygame. Each can also be run as a main program. This is
 useful if the test, such as cdrom_test, is interactive.
 
-For Pygame development the test suite can be run from a Pygame 
-distribution root directory. Program run_tests.py is provided for convenience,
-though test/go.py can be run directly.
+For Pygame development the test suite can be run from a Pygame distribution
+root directory using run_tests.py. Alternately, test/__main__.py can be run
+directly.
 
 """
 
 if __name__ == 'pygame.tests':
     from pygame.tests.test_utils.run_tests import run
 elif __name__ == '__main__':
-    import pygame.tests.go
+    import os
+    pkg_dir = os.path.dirname(os.path.abspath(__file__))
+    main = os.path.join(pkg_dir, '__main__.py')
+    execfile(main)
 else:
     from test.test_utils.run_tests import run
-
+"""Load and run the Pygame test suite
+
+python -c "import pygame.tests.go" [<test options>]
+
+or
+
+python test/go.py [<test options>]
+
+Command line option --help displays a command line usage message.
+
+run_tests.py in the main distribution directory is an alternative to test.go
+
+"""
+
+import sys
+
+if __name__ == '__main__':
+    import os
+    pkg_dir = os.path.split(os.path.abspath(__file__))[0]
+    parent_dir, pkg_name = os.path.split(pkg_dir)
+    is_pygame_pkg = (pkg_name == 'tests' and
+                     os.path.split(parent_dir)[1] == 'pygame')
+    if not is_pygame_pkg:
+        sys.path.insert(0, parent_dir)
+else:
+    is_pygame_pkg = __name__.startswith('pygame.tests.')
+
+if is_pygame_pkg:
+    from pygame.tests.test_utils.run_tests import run
+    from pygame.tests.test_utils.test_runner import opt_parser
+else:
+    from test.test_utils.run_tests import run
+    from test.test_utils.test_runner import opt_parser
+
+if is_pygame_pkg:
+    test_pkg_name = "pygame.tests"
+else:
+    test_pkg_name = "test"
+program_name = sys.argv[0]
+if program_name == '-c':
+    program_name = 'python -c "import %s.go"' % test_pkg_name
+
+###########################################################################
+# Set additional command line options
+#
+# Defined in test_runner.py as it shares options, added to here
+
+opt_parser.set_usage("""
+
+Runs all or some of the %(pkg)s.xxxx_test tests.
+
+$ %(exec)s sprite threads -sd
+
+Runs the sprite and threads module tests isolated in subprocesses, dumping
+all failing tests info in the form of a dict.
+
+""" % {'pkg': test_pkg_name, 'exec': program_name})
+
+opt_parser.add_option (
+     "-d",  "--dump", action = 'store_true',
+     help   = "dump failures/errors as dict ready to eval" )
+
+opt_parser.add_option (
+     "-F",  "--file",
+     help   = "dump failures/errors to a file" )
+
+opt_parser.add_option (
+     "-a",  "--all", action = 'store_true',
+     help   = "dump all results not just errors eg. -da" )
+
+opt_parser.add_option (
+     "-m",  "--multi_thread", metavar = 'THREADS', type = 'int',
+     help   = "run subprocessed tests in x THREADS" )
+
+opt_parser.add_option (
+     "-t",  "--time_out", metavar = 'SECONDS', type = 'int',
+     help   = "kill stalled subprocessed tests after SECONDS" )
+
+opt_parser.add_option (
+     "-f",  "--fake", metavar = "DIR",
+     help   = "run fake tests in run_tests__tests/$DIR" )
+
+opt_parser.add_option (
+     "-p",  "--python", metavar = "PYTHON",
+     help   = "path to python excutable to run subproccesed tests\n"
+              "default (sys.executable): %s" % sys.executable)
+
+TIME_OUT = 30
+
+# DEFAULTS
+
+opt_parser.set_defaults (
+    python = sys.executable,
+    time_out = TIME_OUT,
+)
+
+###########################################################################
+# Set run() keyword arguements according to command line arguemnts.
+# args will be the test module list, passed as positional argumemts.
+
+options, args = opt_parser.parse_args()
+
+kwds = {}
+if options.incomplete:
+    kwds['incomplete'] = True
+if options.nosubprocess:
+    kwds['nosubprocess'] = True
+if options.dump:
+    kwds['dump'] = True
+if options.file:
+    kwds['file'] = options.file
+kwds['timings'] = options.timings
+if options.exclude:
+    kwds['exclude'] = options.exclude
+if options.show_output:
+    kwds['show_output'] = True
+if options.all:
+    kwds['all'] = True
+if options.randomize:
+    kwds['randomize'] = True
+if options.seed is not None:
+    kwds['seed'] = options.seed
+if options.multi_thread is not None:
+    kwds['multi_thread'] = options.multi_thread
+if options.time_out is not None:
+    kwds['time_out'] = options.time_out
+if options.fake:
+    kwds['fake'] = options.fake
+if options.python:
+    kwds['python'] = options.python
+
+###########################################################################
+# Run the test suite.
+run(*args, **kwds)
+
+

test/go.py

-"""Load and run the Pygame test suite
-
-python -c "import pygame.tests.go" [<test options>]
-
-or
-
-python test/go.py [<test options>]
-
-Command line option --help displays a command line usage message.
-
-run_tests.py in the main distribution directory is an alternative to test.go
-
-"""
-
-import sys
-
-if __name__ == '__main__':
-    import os
-    pkg_dir = os.path.split(os.path.abspath(__file__))[0]
-    parent_dir, pkg_name = os.path.split(pkg_dir)
-    is_pygame_pkg = (pkg_name == 'tests' and
-                     os.path.split(parent_dir)[1] == 'pygame')
-    if not is_pygame_pkg:
-        sys.path.insert(0, parent_dir)
-else:
-    is_pygame_pkg = __name__.startswith('pygame.tests.')
-
-if is_pygame_pkg:
-    from pygame.tests.test_utils.run_tests import run
-    from pygame.tests.test_utils.test_runner import opt_parser
-else:
-    from test.test_utils.run_tests import run
-    from test.test_utils.test_runner import opt_parser
-
-if is_pygame_pkg:
-    test_pkg_name = "pygame.tests"
-else:
-    test_pkg_name = "test"
-program_name = sys.argv[0]
-if program_name == '-c':
-    program_name = 'python -c "import %s.go"' % test_pkg_name
-
-###########################################################################
-# Set additional command line options
-#
-# Defined in test_runner.py as it shares options, added to here
-
-opt_parser.set_usage("""
-
-Runs all or some of the %(pkg)s.xxxx_test tests.
-
-$ %(exec)s sprite threads -sd
-
-Runs the sprite and threads module tests isolated in subprocesses, dumping
-all failing tests info in the form of a dict.
-
-""" % {'pkg': test_pkg_name, 'exec': program_name})
-
-opt_parser.add_option (
-     "-d",  "--dump", action = 'store_true',
-     help   = "dump failures/errors as dict ready to eval" )
-
-opt_parser.add_option (
-     "-F",  "--file",
-     help   = "dump failures/errors to a file" )
-
-opt_parser.add_option (
-     "-a",  "--all", action = 'store_true',
-     help   = "dump all results not just errors eg. -da" )
-
-opt_parser.add_option (
-     "-m",  "--multi_thread", metavar = 'THREADS', type = 'int',
-     help   = "run subprocessed tests in x THREADS" )
-
-opt_parser.add_option (
-     "-t",  "--time_out", metavar = 'SECONDS', type = 'int',
-     help   = "kill stalled subprocessed tests after SECONDS" )
-
-opt_parser.add_option (
-     "-f",  "--fake", metavar = "DIR",
-     help   = "run fake tests in run_tests__tests/$DIR" )
-
-opt_parser.add_option (
-     "-p",  "--python", metavar = "PYTHON",
-     help   = "path to python excutable to run subproccesed tests\n"
-              "default (sys.executable): %s" % sys.executable)
-
-TIME_OUT = 30
-
-# DEFAULTS
-
-opt_parser.set_defaults (
-    python = sys.executable,
-    time_out = TIME_OUT,
-)
-
-###########################################################################
-# Set run() keyword arguements according to command line arguemnts.
-# args will be the test module list, passed as positional argumemts.
-
-options, args = opt_parser.parse_args()
-
-kwds = {}
-if options.incomplete:
-    kwds['incomplete'] = True
-if options.nosubprocess:
-    kwds['nosubprocess'] = True
-if options.dump:
-    kwds['dump'] = True
-if options.file:
-    kwds['file'] = options.file
-kwds['timings'] = options.timings
-if options.exclude:
-    kwds['exclude'] = options.exclude
-if options.show_output:
-    kwds['show_output'] = True
-if options.all:
-    kwds['all'] = True
-if options.randomize:
-    kwds['randomize'] = True
-if options.seed is not None:
-    kwds['seed'] = options.seed
-if options.multi_thread is not None:
-    kwds['multi_thread'] = options.multi_thread
-if options.time_out is not None:
-    kwds['time_out'] = options.time_out
-if options.fake:
-    kwds['fake'] = options.fake
-if options.python:
-    kwds['python'] = options.python
-
-###########################################################################
-# Run the test suite.
-run(*args, **kwds)
-
-

test/mixer_music_test.py

         data_fname = example_path('data')
         pygame.mixer.init()
 
-        formats = ['mp3', 'ogg', 'wav']
+        # The mp3 test file can crash smpeg on some systems.
+        ## formats = ['mp3', 'ogg', 'wav']
+        format = ['ogg', 'wav']
 
         for f in formats:
             musfn = os.path.join(data_fname, 'house_lo.%s' % f)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.