Points of Regular Polygon

Richard Gaskin ambassador at fourthworld.com
Tue Nov 29 13:35:33 EST 2016


Richmond Mathewson wrote:

 > ...BUT one cannot deform a regular polygon...

...because it would then no longer be a regular polygon.

To make an irregular polygon use the polygon style.  If you need it to 
have regular points you can first create a regular polygon, get its 
effective points, change its style to "polygon", then set the points and 
adjust them however you like:

    put the effective points of grc 1 into tPts
    set the style of grc 1 to "polygon"
    set the points of grc 1 to tPts

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the Use-livecode mailing list