Drawing line from user input

Hi guys, totally new to Corona and Lua so please bear with me, im in the process of trying to create a drawing app. im not sure where to start, the app would allow you to draw lines and change the color…basically like a virtual chalkboard.

please help point me in the right direction

thanks [import]uid: 26989 topic_id: 5699 reply_id: 305699[/import]

I’m not an expert by anymeans, but I would look at adding event listeners to the “touch event”

Touch has several event types:

“began”
“ended”
“moved”
“cancel”
I would put down an shape at “began” and continue to draw a shape during “moved” and stop drawing when the event is “ended” or “canceled”

Maybe not the best way to do it, but that should get you started. [import]uid: 22457 topic_id: 5699 reply_id: 19672[/import]

to get started, try this: track the began, ended, moved, and cancel events.

On each, print the “x” and “y” coords of the event (hint: print(event.x,event.y))

From there see if you can figure out how to draw a line [import]uid: 22457 topic_id: 5699 reply_id: 19674[/import]