Reputation: 451
I am currently experimenting with canvas drawing function in a uiwebview.Its a simple app that allows you to finger paint on the Iphone.Can someone point me in the rite direction on a problem I'm having.I need to be able to offset the touch so you can see what your painting instead of your finger being in the way.Its built on Html,javascript and css.Any ideas would be greatly appreciated.
Upvotes: 0
Views: 886
Reputation: 13833
On Touch Event Get The X and Y coordinates.... of the Touched place
Remove Some Pixels (Let's say 10) from Y Coordinate (Y-10) change the color of that Particular Place.... or something else to show drawing...
Upvotes: 1