• ɐɥO@lemmy.ohaa.xyz
    link
    fedilink
    arrow-up
    24
    arrow-down
    2
    ·
    7 months ago

    I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS I HATE CSS

  • Mr. Satan@monyet.cc
    link
    fedilink
    arrow-up
    17
    ·
    7 months ago

    This feels a lot like vector graphics. I would imagine one could automate SVG to CSS translation.

    • Crow@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      2
      ·
      7 months ago

      Presumably, tho it might be a little difficult. SVGs use a lot of paths, where you specify the edges of elements. Afaik you can’t do that exact thing in CSS but you could probably split it up into a bunch of triangles. Idk how you’d want to do bezier curves tho

      • Mr. Satan@monyet.cc
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        7 months ago

        Yeah, a one to one conversion might not be possible. Although this example also approximates the image by making it two tone and using simple shapes to compose more complex ones.

        It still feels as a non-trivial task tho.

  • hacknsplat
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    7 months ago

    The real miracle here is that the browser can render the final result so quickly.