Hi.

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



age-----
From: John Craig <j...@splash21.com>
To: How to use LiveCode <use-livecode@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?

http://stackoverflow.com/questions/15272215/editing-polygon-points-with-livecode
 


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to