Ugly Avatar
txstc55.github.io
txstc55.github.io
A little late disclaimer. I didn't create this project.
All the credit goes to Xuan Tang.
(Of course, those repos may have main pushed later as well, invalidating this comment too)
Nice of the author to share the code. Thanks!
Chrome makes it a bit more intuitive, since the tab is called Sources, then click into Page > top > ugly-face > src.
That said, I don't understand why the author didn't simply commit the source code into the GH repo, especially since it's fully retrievable anyway. Maybe there's some goal in doing that other than security by obscurity I'm missing, since they've followed the same pattern for multiple of their repos. It seems kind of anti-collaborative to me.
And it looks so similar: https://www.youtube.com/watch?v=CJcBL9JPfZw&list=PLqIbkxo6OP...
Small voiced his namesake in that cartoon.
if it's not a lot, can you have another UI that display more than one avatar at a time? say, 3x3 or 4x3 grid?
Thanks
maybe i'll explain why, it's like the finding a mate for marriage problem. you dates enough ppl to have a taste of what you like, and then for the next one that comes along that is on par with the best you've seen, you take that.
i guess a 3x3 grid is not necessary, maybe when you click "another", push the old one up (or down) the stack but keep it around so I can always go back and pick the best one I liked so far after the sampling?
Anyway, don't sweat about it, thanks for creating this.
I made something similar a few years back, pulling from a suite of random textures. https://holinaty.com/randomfaces/
Might as well point it somewhere.
Replace intranet/Jira avatars with these on April 1st.
The whole “you’re not allowed to do anything these days for fear of being accused of being racist” thing
[2] URL service: https://github.com/boringdesigners/boring-avatars-service/bl...
Or in Javascript?
I don't want to have to hit any APIs.
JS is probably where you should look. You might be able to find a good PHP drawing library but I've never come across that in my work. Lots of image converting libraries out there (usually just a wrapper around ImageMagik), but "drawing images" usually a client-side thing and you'll find more support for it.
In JS, you'll draw the image to a `<canvas>` element, which can then be downloaded as a PNG. You could go the SVG route, too, depending on the art style. Canvas is the safer bet.
Make a circle.png
Use GD to overlay colour over the radius of the circle
Apply facial details
Then finally anything extra
EDIT: oops, my fault, dark reader was changing the colors.