2

As a webapp, not a native app on the iPhone or Andriod. Is it possible to draw with your finger? If so, how?

Anyone have or can provide a barebone simple example that just loads a blank page?

Thanks

1

2 Answers 2

2

You could use the current cursor position to draw on a canvas element the size of the screen.

2
  • Can you provide an example or link? Aug 11, 2010 at 20:51
  • I would use jqtouch to grab touch events. I don't have the time to code up an example, and I've never seen it done.
    – Josh K
    Aug 11, 2010 at 21:02
1

Like @Josh mentioned. You can use the canvas element which is part of HTML 5

2
  • I've googled extensively, but it doesn't seem to work on an iPhone as the touch isn't registering. Which is why I was hoping someone had an example or has accomplished something like this before? Remember this is for a mobile device, and I want drawing to be touch based. Thoughts? Aug 11, 2010 at 20:58
  • I haven't tried HTML5 on the iPhone (or iPad). Since HTML5 is still "work in progress" and looking at other questions here on stackoverflow, I don't think it's going to be a solid app. You can try to run some of the HTML5 demo apps on your iPhone and see how they render, etc. html5tutorial.net/general/new-canvas-examples.html Some issues with HTML5 on iPhone/iPad stackoverflow.com/questions/2998941/… stackoverflow.com/questions/2878580/…
    – del.ave
    Aug 12, 2010 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.