• Dark ArcEnglish
    arrow-up
    5
    arrow-down
    1
    ·
    4 months ago
    link
    fedilink

    We need to invent an image format that let’s chart colorw be tweaked after the fact lol

    • grueEnglish
      arrow-up
      2
      arrow-down
      0
      ·
      4 months ago
      edit-2
      4 months ago
      link
      fedilink

      Actually, that’s a feature that was common going all the way back to the very earliest image file formats: https://en.wikipedia.org/wiki/Indexed_color

      It’d be easy enough to make the chart a plain old GIF or indexed PNG; the only non-trivial part is that you’d need add some code to the page it’s embedded in to swap out the color palette. (You could also make it an SVG and manipulate it even more easily using the DOM.)

      • Dark ArcEnglish
        arrow-up
        1
        arrow-down
        1
        ·
        4 months ago
        link
        fedilink

        Well, the image format is based on indexed color for compression purposes But it’s not like it calls out “these indexes should be customizable”.