this post was submitted on 09 Apr 2024
74 points (96.2% liked)

Programmer Humor

32464 readers
452 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Crow@lemmy.blahaj.zone 2 points 7 months ago (1 children)

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 2 points 7 months ago* (last edited 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.