DEV Community

Discussion on: A Paint App In 25 Written Js Lines

Collapse
 
jameslivesey profile image
James Livesey

Great program in such a small amount of code! What would be nicer is to have less lag when drawing stuff! Maybe make it so that there is a line connecting the dots so if you draw really fast it still looks okay.

Collapse
 
abdurrahmaanj profile image
Abdur-Rahmaan Janhangeer

you can do it with line(prevMouseX, prevMouseY, mouseX, mouseY)

Collapse
 
jameslivesey profile image
James Livesey

Yeah, that'd make it work much nicer! 😉