Curving a line

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
atmosk
Posts: 32
Joined: Wed Feb 27, 2013 5:50 pm

Curving a line

Post by atmosk » Mon Mar 04, 2013 5:35 pm

I'm trying to first create a line/polygon with code (succeeded) and then if I hold mouse down on the line, to drag/curve the line (unsuccessful).

I've been struggling with this a couple days and didn't want to post here unless i've exhausted all other options.

So, is there perhaps some function in LC to curve between point A to B to C or would I just have to admit defeat and have to write a function to calculate all the 1000(ish) positions for the curve?

Any help will be very much appreciated!

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Curving a line

Post by bn » Mon Mar 04, 2013 8:23 pm

Hi atmosk,

you might want to have a look at Jim Hurley´a Bezier stack at revOnline
http://revonline2.runrev.com/stack/693/Bezier-Line

if that is what you want.

Kind regards

Bernd

atmosk
Posts: 32
Joined: Wed Feb 27, 2013 5:50 pm

Re: Curving a line

Post by atmosk » Mon Mar 04, 2013 8:29 pm

Perfect!

Not quite what I had in mind but, with that I will definitely be able to make what I had in mind.

Thanks for your time! :)

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Curving a line

Post by bn » Mon Mar 04, 2013 8:35 pm

what exactly did you have in mind?
Maybe someone can help.

Kind regards
Bernd

atmosk
Posts: 32
Joined: Wed Feb 27, 2013 5:50 pm

Re: Curving a line

Post by atmosk » Mon Mar 04, 2013 8:45 pm

What i had in mind was a magical command/function which would solve my problem (naive at best). What you shared though is exactly what I needed and need to progress with this puzzle.
That's what I tried to say with the above post but my engrish isn't that strong so.. but yea, thanks again :)

Post Reply