I am working on a game, quite simliar to skribbl io. To paint in the game i am drawing lines between mouseX/Y an pmouseX/Y with p5.js
if(mouseIsPressed){
line(mouseX, mouseY, pmouseX, pmouseY);
}
as the code gets more complex the distance of the points are getting bigger and the drawing happens delayed and is "angular" when dragged fast:
Is there another way to paint in p5.js? I am looking for a solution making these "reverse C's" more round, not ~8 lines. so basically a higher rate of when coordinates are saved in pmouseX/Y.