Editing polygon points
dunbarx at aol.com
dunbarx at aol.com
Thu Mar 7 09:07:28 EST 2013
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 <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?
http://stackoverflow.com/questions/15272215/editing-polygon-points-with-livecode
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list