This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 1c86bf51648b295323c49f14f63c14fee0f33dcf (commit) from eef84fa42d26341f4dd66b35672957fa35e23b8e (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/1c86bf51648b295323c49f14f63c14fee0f33...
commit 1c86bf51648b295323c49f14f63c14fee0f33dcf Author: Cyril Hrubis metan@ucw.cz Date: Sat Mar 23 19:49:13 2013 +0100
doc: pywrap: Finish gfx docs.
diff --git a/doc/gfx_python.txt b/doc/gfx_python.txt index 3644358..941b1f8 100644 --- a/doc/gfx_python.txt +++ b/doc/gfx_python.txt @@ -21,15 +21,8 @@ WARNING: Drawing functions takes strictly integer coordinates, make sure that all divisions are integer divisions (i.e. use // instead of /) to ensure portability with Python 3.X.
-[source,python] -------------------------------------------------------------------------------- -import gfxprim.gfx as gfx - - context.gfx.Fill(pixel) - -------------------------------------------------------------------------------- - -Fills context with particualr 'pixel' value. +Line Based Primitives +^^^^^^^^^^^^^^^^^^^^^
[source,python] ------------------------------------------------------------------------------- @@ -105,5 +98,120 @@ import gfxprim.gfx as gfx Draws a polygon defined by points, points can be either flat list of 2N integers or list of N tuples.
+[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.Circle(x, y, r, pixel) + +------------------------------------------------------------------------------- + +Draws a circle. + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.Ellipse(x, y, a, b, pixel) + +------------------------------------------------------------------------------- + +Draws an ellipse. + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.Ring(x, y, r1, r2, pixel) + +------------------------------------------------------------------------------- + +Draws a ring. + +Filled Primitives +^^^^^^^^^^^^^^^^^ + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.Fill(pixel) + +------------------------------------------------------------------------------- + +Fills context with particular 'pixel' value. + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.FillRect(x0, y0, x1, y1, pixel) + +------------------------------------------------------------------------------- + +Fills a rectangle defined by two points. + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.FillTriangle(x0, y0, x1, y1, x1, y2, pixel) + +------------------------------------------------------------------------------- + +Draws a filled triangle defined by three points. + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.FillTetragon(x0, y0, x1, y1, x1, y2, x3, y3, pixel) + +------------------------------------------------------------------------------- + +Draws a filled tetragon defined by four points. + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.FillPolygon([x0, y0, x1, y1, ...], pixel) + + context.gfx.FillPolygon([(x0, y0), (x1, y1), ...], pixel) + +------------------------------------------------------------------------------- + +Fills a polygon defined by points, points can be either flat list of 2N +integers or list of N tuples. + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.FillCircle(x, y, r, pixel) + +------------------------------------------------------------------------------- + +Fills a circle. + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.FillEllipse(x, y, a, b, pixel) + +------------------------------------------------------------------------------- + +Fills an ellipse. + +[source,python] +------------------------------------------------------------------------------- +import gfxprim.gfx as gfx + + context.gfx.FillRing(x, y, r1, r2, pixel) + +------------------------------------------------------------------------------- + +Fills a ring, i.e. area enclosed between two circles.
TIP: See gfx module link:example_py_gfx.html[example].
-----------------------------------------------------------------------
Summary of changes: doc/gfx_python.txt | 126 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 117 insertions(+), 9 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.