[squeakland] More than one input for a script?
kharness at illinois.edu
Wed Aug 31 12:09:35 EDT 2011
Perhaps this project is a partial answer to your questions below:
From: squeakland-bounces at squeakland.org [squeakland-bounces at squeakland.org] on behalf of R.D. Latimer [rdlatimer at gmail.com]
Sent: Wednesday, August 31, 2011 11:01 AM
To: squeakland at squeakland.org; Allard, Fred
Subject: Re: [squeakland] More than one input for a script?
note that drawPolygon should be "turn 360/sides" (below)
On Wed, Aug 31, 2011 at 11:41 AM, R.D. Latimer <rdlatimer at gmail.com<mailto:rdlatimer at gmail.com>> wrote:
I'd like to make a simple drawPolygon script that needs two inputs, one of length of each side and one for number of sides.
The basic prototype is:
drawPolygon (length, sides):
turn sides/360 <-- turn 360/sides
With Etoys, It looks like the limit is one input parameter for a script, so that the script would be limited to:
forward 100 <-- the user would need to hard code the length of the sides
Can I use more than on numerical input in a script?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the squeakland