Has my motd gone too far? It loads a random ANSI catgirl from a folder. I use arch btw, server runs minimized Ubuntu Server.

  • Finadil@lemmy.worldOP
    link
    fedilink
    arrow-up
    7
    ·
    1 day ago

    It’s beautiful! I actually adjusted my python code to your method and just for optimization checked if the current two pixel colors match the previous two and if so leave out the color info. Much more fidelity in the images now!

    • TwilightKiddy@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      17 hours ago

      As an extra optimization, if top and bottom colors of a pixel match, you can just output space and only set background color. Implemented correctly, this can save a lot of memory. Didn’t want to make the code more complex in fear of people being scared of running it.