Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
path: root/pysamples/svg_end_group.py
diff options
authorWalter Bender <walter.bender@gmail.com>2011-10-05 11:49:40 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-10-05 11:49:40 (GMT)
commit12ef94bb1d9d87018bc075f6cba0ebef98fb1592 (patch)
tree3e568092c90ed24732b2256faad2195163e8c55a /pysamples/svg_end_group.py
parent36d0a4657dfa0d06eaf0033b5d6909e2ec8b6f0b (diff)
added comments to describe usage
Diffstat (limited to 'pysamples/svg_end_group.py')
1 files changed, 9 insertions, 4 deletions
diff --git a/pysamples/svg_end_group.py b/pysamples/svg_end_group.py
index e4682b3..6b951df 100644
--- a/pysamples/svg_end_group.py
+++ b/pysamples/svg_end_group.py
@@ -4,10 +4,15 @@
# "extras" palette is selected and expanded to 3 arguments.
# Usage: Import this code into a Python (user-definable) block.
-# First, expand the Python block to reveal three numerics arguments.
-# Set these values to the desired red, green, and blue. When the code
-# is run, the red, green, and blue values are used to set the pen
-# color.
+# In using SVG, it is sometimes useful to divide your drawing into
+# groups of elements. You can do that by inserting <g> </g> around
+# sections of your code.
+# Place the svg_start_group.py block at the point in your program
+# where you'd like to start a group in your SVG output.
+# Be sure to use the corresponding svg_end_group.py block to close
+# the SVG group definition.
def myblock(tw, x):