DEV Community

Cover image for A Paint App In 25 Written Js Lines

A Paint App In 25 Written Js Lines

Abdur-Rahmaan Janhangeer on February 16, 2019

A paint app easily, using p5js. And some p5js info in case you are new to it! Explaining The Title Well why i put written ? Simply be...
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! 😉

Collapse
 
abdurrahmaanj profile image
Abdur-Rahmaan Janhangeer

glad you liked it. ah that's a nice idea! if i remember i'll do a follow up post to add some functionalities to it.