I'm doing a project on CodeCademy and I want to know how can I make a <canvas>
that takes user input to draw anything that the user wants to draw.
I have seen people do this but it draws like as if it is creating lines.
To give an example, whenever I tap anywhere in that the user have made it creates a line from the last point where I had left drawing to where I have tapped.
I do not want this.
Also, will I need to enable this by giving each pixel personal attention for precision?
If yes, then how do I make a loop for that?
Sorry for a lot of questions in a question.
EDIT : I also want the user to be able to delete what he/she made by one click at a button. And please explain the way each thing works in the code except for general syntax.