• wischi@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    4 months 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.

    • Brewchin@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      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…

  • FishFace@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    4 months 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)?