Editing polygon points

dunbarx at aol.com dunbarx at aol.com
Thu Mar 7 09:07:28 EST 2013


I don't think you can access the points of a polygon directly, nor can you address a particular point, as in:

set the loc of point 3 of grc "yourGraphic" to newValue

I could be wrong.

But you can address the points as a group. Make a simple polygon with a few vertices. Make a button, and put this into its script:

on mouseUp
   put the points of grc 1 into temp
   repeat 10
      add random(10) to item 2 of line 3 of temp
      set the points of grc 1 to temp
      wait 20
   end repeat
end mouseUp

Is this enough for you?

Craig Newman

From: John Craig <john at splash21.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Thu, Mar 7, 2013 8:29 am
Subject: Editing polygon points

Is it possible to visually edit the points of a polygon and can I add 
and delete individual points?


use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 


More information about the Use-livecode mailing list