Rotating Graphics

Dar Scott dsc at swcp.com
Fri Mar 5 11:02:18 EST 2004


On Friday, March 5, 2004, at 08:31 AM, Dar Scott wrote:

>> Does anyone have any tips?
>
> Use a custom property (or more) to hold points with fractional 
> positioning, that is, with numbers that are not rounded after each 
> rotation.  Rotate that.  After each rotation set the points.  Never 
> get the points, except maybe for the first time.

I didn't mention that the points must be rounded.  That is, round the 
numbers when setting the points.  If the polygon is always closed, you 
don't have to duplicate the calculation on the duplicated point.

You can use a setProp on your custom property to handle all that behind 
the scenes.

Dar Scott




More information about the use-livecode mailing list