Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Line algorithm #1944
We have two different issues that we want to solve with a line algorithm:
The first bug is related to the possibility to create straight lines with perfect angles for pixel-art, and the second bug is related to that the new line algorithm doesn't work to make continue lines (which is the most common case to be fixed).
A possible line algorithm that merges both approaches shows some undesirable results too:
The bad thing is that when we switches the common algorithm (for continuous lines) to a perfect pixel block lines algorithm, the line is too different.
One possible solution would be to use the perfect pixel line algorithm only in some special cases:
In other case we'll use the regular algorithm that fits continuous lines as in https://community.aseprite.org/t/1045