More than one input for a script?
"R.D. Latimer" <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.squeakland |
|---|---|
| Message-ID | <CAM8Wt+YShKaGGEGsBVOjKgyn95nQKy-JvNOj_VyW9wRXJTj+dg@mail.gmail.com> |
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):
repeat sides
forward length
turn sides/360
With Etoys, It looks like the limit is one input parameter for a script, so
that the script would be limited to:
drawPolygon (sides):
repeat sides
forward 100 <-- the user would need to hard code the length of
the sides
turn sides/360
Can I use more than on numerical input in a script?
Thanks,
Randy Latimer
_______________________________________________
squeakland mailing list
[email protected]
http://lists.squeakland.org/mailman/listinfo/squeakland