• wischi@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    1 day 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
      ·
      9 hours 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…