From 12ef94bb1d9d87018bc075f6cba0ebef98fb1592 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 05 Oct 2011 11:49:40 +0000 Subject: added comments to describe usage --- (limited to 'pysamples/svg_start_group.py') diff --git a/pysamples/svg_start_group.py b/pysamples/svg_start_group.py index 57500bc..46da326 100644 --- a/pysamples/svg_start_group.py +++ b/pysamples/svg_start_group.py @@ -4,14 +4,18 @@ # "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 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): ''' Add start group to SVG output ''' tw.svg_string += '' - -- cgit v0.9.1