It is currently Tue Jul 23, 2024 6:23 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 7:53 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
As you probably know, Trandoductin has re-coded the Triangulator program to make a program that polygonizes with manually added and moveable vertices points. I had asked it it could be made to work on an iPad and he re-coded it to work on my iPad, except for one little thing. It still needs a mouse, it will not accept touch screen input. So, if anyone with an iPad to test it on knows how to add coding to the javascript, it would be truly appreciated it you could lend a hand with this. Thanks!


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 8:12 pm  (#2) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
2 ton,
This might be good news.
I just found some code that tries to map touch/tap events to mouse events on this site http://stackoverflow.com/questions/1517924/javascript-mapping-touch-events-to-mouse-events
I pasted into the i think it's the right place in the code and uploaded to the site http://unurbandictionary.comule.com/polygon/index.html
Why don't you give it another try and let me know if it works (i am keeping my fingers crossed :))

_________________
TinT


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 8:18 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
OK, I have to go get my iPad, so give me a few minutes.

*uh oh, it's now not allowing me to tap on Choose File button.


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 8:22 pm  (#4) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
well that sucks i give up!

_________________
TinT


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 8:29 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
lol, I hope someone with the right answer will show up. This would be such a great program to use on an iPad, so portable! And when I was making the web address as a bookmark, I accidentally managed to make it as an icon on the tablet screen, so it looks just like an app icon!


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 9:17 pm  (#6) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
come on, where is that someone?
I just changed something on the site, you want to give it another shot!?

_________________
TinT


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 9:35 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
This is getting closer. I can use touch, so I can choose my photo, and yes, I can get vertices, but then it doesn't fill in the polygon! It's almost there, lol


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 9:36 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Wait, I think it's working s l o w l y


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 9:38 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
ok, so it's 'sort' of working. I have a polygon that I did not add the vertices to, then I did a couple triangles that did work, then I did more that didn't work. What the heck?

closed it out and tried another picture and now it's not showing and touched spots with vertices again.

I only could get it to partially work with one picture, and not at all in a couple other pictures. It doesn't work well when it works, time lag and you can't really see to get the vertices exactly where you want. The triangles that popped up, some where where I wanted and some were not. You can move the points fine, except you have to be careful because it's a touch screen and sometimes it gets mixed up with regular iPad commands, lol. Maybe my iPad doesn't have enough memory, it's only a 16 GB and half is available right now.


Last edited by 2-ton on Mon Jun 16, 2014 9:53 pm, edited 1 time in total.

Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 9:49 pm  (#10) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
let me try something else.
Ok try it now

_________________
TinT


Last edited by trandoductin on Mon Jun 16, 2014 10:01 pm, edited 1 time in total.

Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 9:55 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Oh my, it's like making an iPad app that isn't really an iPad app!!! Very tough project. By the way, The vertices are so tiny, it's very hard to tap exactly on them to close the polygon.


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 10:02 pm  (#12) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
try it now again (and if it's too tiny, try zoom-ing in) are you using your finger or the stylus?

_________________
TinT


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 10:11 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
No change. I am wondering why the vertices are sitting there with no filled in polygon. Is the memory a consideration or is this all done online.


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 10:12 pm  (#14) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
it's all javascript so it's all done on your ipad, it only grabs the page, after that everything is done on your local.

_________________
TinT


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 10:16 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
The iPad pics are fairly high resolution. Not like a good iPhone pic or camera, but still uses a lot of memory. I am wondering if that is the problem.


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Mon Jun 16, 2014 11:44 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Encouraging news. This is working better now. It's still very crude, it's nearly impossible to touch the exact points, and I can only get it to make triangles, but it's working with the touch screen and you can choose the pic with the choose button. Here is a screen shot of my very bad try using my fingers. You might be able to see all the vertice points that never made a connection! It is a screen shot as I didn't want to lose it by trying to save it. Image


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Tue Jun 17, 2014 7:27 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2011
Posts: 1764
Great stuff you two. which version of iPad are you using 2 ton


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Tue Jun 17, 2014 7:30 am  (#18) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Did you do that on your ipad 2-ton. I have a couple paint apps on mine but I don't think I have that one.

_________________
Image


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Tue Jun 17, 2014 9:17 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
yes, I did this on my iPad mini, I think it's version iPad 2, but not sure. It's only the 16 gig memory, and I have no idea how much of that the program can use. I can't wait until the new IOS 8 comes out so all the junk can be stored on the cloud and I will have more memory freed up. I have a stylus, but they don't have a pointy tip either. I wish they had a stylus that had a sharp pointy tip for exact placement. Kudos "Tran" for getting this going!!!


Top
 Post subject: Re: Do you have iPad, can you code?
PostPosted: Tue Jun 17, 2014 9:54 am  (#20) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Mine is the mini-pad too. I know what you mean about the stylus. I inquired at Best Buy and they don't come for the touch pad. I tried to play around with the Procreate but it is very hard to get onto and the tutorials are very brief. You can download that for $4.99. I also downloaded free, My Paint so I have them both.

If you watch this video of procreate drawing Morgan Freeman, I would like to know how this can be done with a stylus or your finger.
http://www.pocket-lint.com/news/125580- ... create-app

_________________
Image


Top
Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Source Code for all my GEGL Filters

35

No new posts VS Code - configure linting for PythonFu

0

No new posts Attachment(s) Kaleidoscope Plugin Source Code

1

No new posts Attachment(s) Inserting pdb.python_gegl command in my code

21

No new posts timer plug-in acts sort of like a stop watch w/wo TRACKING CODE

1



* Login  



Powered by phpBB3 © phpBB Group