home.social

#xpm — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #xpm, aggregated by home.social.

  1. @rl_dane Hah, I used it at one point as a visualization output format for letter-pair frequency, running various corpora through awk(1), then emitting the XPM data with brightness-values at each letter-pair coordinate in a 26x26 grid. 😆

    #xpm is pretty great!

  2. Say what you like, I think the #XPM format is kind of beautiful.

    /* XPM */
    static char *Apple_Menubar_Logo[] = {
    /* columns rows colors chars-per-pixel */
    "11 14 7 1 ",
    "  c None",
    ". c #DD1C00",
    "X c #FF6600",
    "o c #01BB00",
    "O c #FFFF01",
    "+ c #002FDD",
    "@ c #FF2C99",
    /* pixels */
    "       oo  ",
    "      oo   ",
    "      o    ",
    "  ooo  ooo ",
    " oooooooooo",
    "OOOOOOOOO  ",
    "OOOOOOOOO  ",
    "XXXXXXXXX  ",
    "XXXXXXXXXX ",
    "...........",
    " @@@@@@@@@@",
    " @@@@@@@@@@",
    "  ++++++++ ",
    "   ++  ++  "
    };
    

    https://en.wikipedia.org/wiki/X_PixMap

  3. If you so choose, you can use ASCII palette indices in DPF files, just like you would in XPM files. But in DPF there's no reason you wouldn't use any Unicode codepoint for palette indices. In fact, if you use coloured square emojis instead of plain ASCII characters,.
    If you do it that way, when you cat a .dpf file with icons, what you will get will be... oh surprise!

    ...icons!

    #DeluxeDraw #pixelart #foss #golang #xpm #dpf #bdf