You should use the Bresenhams Line Algorithm for aliased lines instead of just marking all pixels the underlying line touches because that leads to thickness inconsistencies.
This is exactly what I came into the comments to say. 😄
I somehow remember the circle algorithm ahem years after learning and using it for anything I could…
I don’t get it.
Is the point that the lines are diagonal, rather than vertical or horizontal?
Is it that a proper tool would have anti-aliased them?
Is it that the rightmost lines have been scaled up so have fatter pixels than the others (anisotropically in one case I think)?
Neither. It’s about using screen pixels to make vertical/horizontal lines, using aliasing as feature.
Why would you want to make horizontal or vertical lines in this way except to make a diagonal one?
Why are the last two lines scaled?



