You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This logic in paint is finicky and very hard to follow; I suspect we could do better.
As a first step, perhaps extract the contents of paint into a separate function generateLines that returns a collection of lines to paint (with x, y positions), then have paint only render these.
e.g.:
class LinesToPaint {
int startX;
int startY;
...
}