Page 1 of 1

Draw a line from point to point

Posted: Thu May 15, 2014 4:45 pm
by ChessGredon
Hello there, new to Livecode, think it's awesome, the dictionary, cross-platform, everything. My question is: How do I draw a line from point to point with given coordinates (runtime). I checked the dictionary and found "create", but I am not sure how to use it to write a line. Little help?

Re: Draw a line from point to point

Posted: Thu May 15, 2014 4:51 pm
by sefrojones

Re: Draw a line from point to point

Posted: Thu May 15, 2014 4:57 pm
by ChessGredon
Exactly what I was searching for, thanks : ))

Re: Draw a line from point to point

Posted: Thu May 15, 2014 5:34 pm
by dunbarx
You can also set the points of a line graphic to "pointA,pointB". Should be faster, and the line grc can be named, its properties set, and further managed should the need arise.

Craig Newman

Re: Draw a line from point to point

Posted: Thu May 22, 2014 5:06 pm
by ChessGredon
dunbarxs' way is interesting + it runs on Android also. If someone is interested, I recommend the way with the Vector Graphics (dunbarxs')