• FishFace@piefed.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    13 hours ago

    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)?

  • wischi@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    16 hours ago

    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.