Hello every one I am trying to make an app where the user can input there own signature. I tried this code
local function draw( x, y ) local o = display.newImageRect( "brush.png", 40, 40 ) o.x = x; o.y = y end local function onTouch(event) local x = event.x local y = event.y local phase = event.phase if phase == "began" then previousX,previousY = x,y draw( x, y ) draw( x, y ) previousX,previousY = x,y end end Runtime:addEventListener("touch", onTouch)
which was fine until I tried to draw faster by swiping my fingers faster and it failed to draw in some of the area that my fingers swiped. As you can see from the image below. Can anyone help me with this?