Closed AshtrayShetty closed 2 years ago
Happened to me too. Thought it was cuz i was on mobile safari but no
This is a regression from a half-implemented performance optimization. I was planning on making it draw a set of lines with WebGL so that it can draw a segment of the brush stroke at once, instead of as a series of drawImage
calls of a pre-rendered brush. So I made it detect the outline of the shape, for a list of points to use as offsets for (both the start and end points of) a set of lines.
This could be fixed by either:
fillRect
You could also play with the context manager attributes such as lineCap, lineJoin, etc.
@AshtrayShetty I'm not using CanvasRenderingContext2D's line rendering because it doesn't support disabling antialiasing. It's ironic because I'm going for a style of line (aliased / "pixely") that should be computationally simpler to draw, but I have to jump thru hoops to do it.
On selecting the large square in the brush tool, there are certain white "gaps" left on drawing. Here is a screenshot:
This throws off the feel of the app working like MS Paint. Other than that, great work. Hope you come up with a fix soon!!!