• AnarchistArtificer@slrpnk.net
      link
      fedilink
      English
      arrow-up
      9
      ·
      4 days ago

      Neat! This was so fun to learn about, thank you for sharing. Xiaolin Wu did not live in vain after all, because of nerds like us

      • xxce2AAb@feddit.dk
        link
        fedilink
        arrow-up
        1
        ·
        3 days ago

        I can see that. Speaking as someone who used to do the majority of my graphics programming in good old mode 0x13 (320x200x8bpp, indexed) I know the appeal well enough. Mayhaps it’s just my inner Signal Engineer always hankering for proper band limiting.

  • wischi@programming.dev
    link
    fedilink
    arrow-up
    9
    ·
    4 days 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
      ·
      3 days 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
    5
    arrow-down
    1
    ·
    4 days 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)?