Tracing Function Help

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Tracing Function Help

Post by jacque » Fri Oct 07, 2011 7:19 pm

wolfkillshepard wrote:Hey guy's I know this thread hasn't been visited in a while but after doing some more testing, this drawing function isn't as smooth as I would like it to be on iOS. When signing your name its a lot less smooth on the actual phone than when on a computer. If you have an idea about how to make it good enough to the extent where I can sign a legible signature with a stylus I would really appreciate it!

Thanks!
Engine redraws have been specifically addressed and improved in the next release and are many times faster. I think if you just wait a bit the new release will fix this for you.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Tracing Function Help

Post by Dixie » Fri Oct 07, 2011 7:41 pm

Wilfskillshepard...

Does this work for you ?

be well

Dixie
Attachments
draw.livecode.zip
(1.69 KiB) Downloaded 267 times

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

Re: Tracing Function Help

Post by bn » Fri Oct 07, 2011 9:38 pm

Hi Wolf, Dixie

I was just playing around with Dixie's code and modified it a bit when basically the same question was brought up in another thread by Kaubs
http://forums.runrev.com/phpBB2/viewtop ... 289#p44289

What I did is try to get the sampling rate of x,y coordinates a little up for a little better resolution. I introduced a redraw delay which can be set from 10 to 200 milliseconds just to experiment with this. Also I added a slieder for the linesize of the graphic since I had the impression the the larger the linesize the slower the graphic redraw. Also I reduced the querying of properties which in earlier stack helped a little. I keep the x,y in a script local variable and just set the graphic.

On my iPhone G3 which is slooow, it worked somehow OK. Not really snappy or super resolution but ok. But Dixie's script did that also.

Here is my take on the signature thing:


(same stack as posted over in the other thread)

Kind regards

Bernd
Attachments
Draw2.livecode.zip
(2.27 KiB) Downloaded 258 times
Last edited by bn on Mon May 27, 2013 10:02 am, edited 1 time in total.

Kaubs
Posts: 124
Joined: Wed Jun 29, 2011 3:55 am

Re: Tracing Function Help

Post by Kaubs » Fri Oct 07, 2011 10:29 pm

That is great! You guys are awesome! I am going to look over the code and see how its all done to try and have a better understanding. What you two have provided is certainly more stable and responsive than the setup I currently have. Thanks!!

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Tracing Function Help

Post by BarrySumpter » Sat Oct 08, 2011 6:40 am

Nice!
Works on Android and HTC HD2.

The double click takes about 10 goes to work.
I don't know why.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

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

Re: Tracing Function Help

Post by bn » Sat Oct 08, 2011 9:20 am

Hi Berry,

the doubleclick is not the best way to erase the graphic on a mobile device because most of the time as you noticed one makes also a move since fingers are large and often also trigger a mouseMove. On the desktop with a mouse no problem. It is kind of an inherent problem of all touch devices. On iOS the system waits for more the 9 pixel "move" before it decides that you want to scroll, exactly for that reason.

It is probably better to use a button, or a shake or click outside of the drawing area to erase the graphic.

Kind regards

Bernd

strongbow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 146
Joined: Mon Jul 31, 2006 1:39 am
Contact:

Re: Tracing Function Help

Post by strongbow » Tue Jan 31, 2012 6:03 pm

Anyone know what happened to the 2 Draw examples that are linked to in this topic but don't seem to be available any more?

Just wondering - if anyone still has one of these they could send me, that'd be great!

cheers

Alan ;-)

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Tracing Function Help

Post by jmburnod » Tue Jan 31, 2012 6:57 pm

Hi strongbow,

I think this is the stack in attachment

Best regards

Jean-Marc
Attachments
DrawBN.livecode.zip
(2.28 KiB) Downloaded 367 times
https://alternatic.ch

strongbow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 146
Joined: Mon Jul 31, 2006 1:39 am
Contact:

Re: Tracing Function Help

Post by strongbow » Tue Jan 31, 2012 10:29 pm

Thanks!

Happyrever
Posts: 55
Joined: Sat Sep 10, 2011 12:22 pm

Re: Tracing Function Help

Post by Happyrever » Wed Feb 01, 2012 11:35 am

Just a thought, RunRev produced a simple painting application which consisted of a small blackboard and pull-out pallett. From memory, it was on their web site to advertise and demonstrate either the web software or the graphics software, introduced several years ago. If someone has this very simple app, I am sure it would provide the ideal solution for this problem.
The blackboard could be shaped to become the input area and be used to capture the signature. The pallett would be shaped to the style of the users application.
I was amazed at how few instructions (script length) was needed to do what it did.
If anyone finds the link, let me know as well because I could do with it for a photo mark up feature in my own application.

William Jamieson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 212
Joined: Fri Feb 01, 2013 1:31 am
Contact:

Re: Tracing Function Help

Post by William Jamieson » Mon May 27, 2013 9:31 am

I really like what was discovered in this app. Although after Runrev changed their website, the links don't work anymore. Could someone who has the file please repost it for the community? Thank you!

Post Reply