At the beginning, I simply drew an ellipse with the current coordinate on onMouseMove, but I ran into the problem of not getting a continuous line.
I decided to connect the dots with lines, but another problem came out - on a large thickness when turning, the corners of the beginning and end of the lines seemed to crawl over the smear area and peeped out.
I decided to return to the first variant, but instead of drawing a single point, draw many points with an offset. But even here the problem is, due to the imposition, smoothing deteriorates, the smear becomes coarse, and even the transparency is leveled. Plus, either you add a lot of intermediate points and everything starts to slow down, or breaks at high speed anyway.
The question is how it is implemented in various graphic editors? To rake a bunch of abstractions from some open source application broke.
