• wischi@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Quite the contrary. I have a red-green deficiency (and so do about 6% of men). Viridis Color scale is pretty nice but two much colors are hard to read for a lot of people

      • grue@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        7 months ago

        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 Arc@social.packetloss.gg
          link
          fedilink
          English
          arrow-up
          0
          arrow-down
          1
          ·
          6 months ago

          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”.