From 8ed5bd24781541e52272a8829f1a37a4b982d6fa Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 24 Mar 2011 19:16:48 +0000 Subject: added more psuedo code to comment as per #2709 --- (limited to 'pysamples') 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): -- cgit v0.9.1