||THE HYPERCARD CENTER
Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
polySides to posInteger where
posInteger is 0 or a number from 3 to 50.
polySides property returns or sets the number of sides of a polygon created by the Regular Polygon tool. Set
polySides to 0 to draw a circle.
(You can also select one of six standard polygons by choosing Polygon Sides from the Options menu.)
If you set
polySides to a number lower than 3 (other than 0) or higher than 50, it automatically reverts to 3 or 50.
show bkgnd field "demo field"
set dragspeed to 250
put "50,16,12,10,9,8,7,6,5,4,3" into theSides
repeat with itemNum = 1 to the number of items in theSides
set polysides to (item itemNum of theSides)
drag from "240,160" to "240,250"
displayMessage "Click the mouse" & return & "to continue . . ."
set the cursor to arrow
wait until the mouseClick
hide bkgnd field "demo field"
choose browse tool
show card picture
set lineSize to 1
choose regular polygon tool
set the pattern to 1
set centered to true
set filled to true
set grid to false
An expression that evaluates to a positive integer.
67 mod 13
the number of bg fields
the number of backgrounds
the number of cards div 2
background, bkgnd, button, card, chunk,
« pattern | HyperTalk Reference
| powerKeys »