diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-03-24 19:16:48 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-03-24 19:16:48 (GMT) |
commit | 8ed5bd24781541e52272a8829f1a37a4b982d6fa (patch) | |
tree | 29bddd71feef824d48cfb519154571428438b236 /pysamples | |
parent | d11ff3b0a7d80eebf3db5b5227f1c9f71251f97c (diff) |
added more psuedo code to comment as per #2709
Diffstat (limited to 'pysamples')
-rw-r--r-- | pysamples/load_block.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pysamples/load_block.py b/pysamples/load_block.py index 8924605..b839757 100644 --- a/pysamples/load_block.py +++ b/pysamples/load_block.py @@ -30,6 +30,12 @@ # height of the block is pushed to the FILO heap and can be used to # advance the position of the turtle when creating stacks. +# For example, try the following to place forward 100, right 90 on the canvas: +# start +# Python(forward, 100) <-- Python load_block.py expanded to two arguments +# setxy(xcor, (subtract(ycor, pop))) <-- subtract top of heap from ycor +# Python(right, 90) <-- Python load_block.py expanded to two arguments + def myblock(tw, blkname): |