Draw a line from point to point

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ChessGredon
Posts: 24
Joined: Thu May 15, 2014 4:40 pm

Draw a line from point to point

Post by ChessGredon » Thu May 15, 2014 4:45 pm

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?

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Draw a line from point to point

Post by sefrojones » Thu May 15, 2014 4:51 pm


ChessGredon
Posts: 24
Joined: Thu May 15, 2014 4:40 pm

Re: Draw a line from point to point

Post by ChessGredon » Thu May 15, 2014 4:57 pm

Exactly what I was searching for, thanks : ))

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10335
Joined: Wed May 06, 2009 2:28 pm

Re: Draw a line from point to point

Post by dunbarx » Thu May 15, 2014 5:34 pm

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

ChessGredon
Posts: 24
Joined: Thu May 15, 2014 4:40 pm

Re: Draw a line from point to point

Post by ChessGredon » Thu May 22, 2014 5:06 pm

dunbarxs' way is interesting + it runs on Android also. If someone is interested, I recommend the way with the Vector Graphics (dunbarxs')

Post Reply