Missing points when drawing
Closed this issue · 1 comments
oreporan commented
Hi
I'm trying to use this library to draw on an image, and then take the points drawn and create a new canvas with the image on it (rather than using the image as a background)
However when I try to re-draw the points that I got from getSavedData()
, I get spaced-out points
After drawing the points on a new canvas:
My function for drawing:
lines.forEach(({points, brushColor, brushRadius}) => {
ctx.fillStyle = brushColor;
points.forEach(({x, y}) => {
ctx.fillRect(x, y, brushRadius, brushRadius);
});
});
Any ideas why?
oreporan commented
switched to use lineTo()