Reply here if you just want to see how your username looks like, so we avoid noise and keep that Show HN on the top. comments are really interesting
Show HN: HN Avatars in 357 bytes
401–410 of 536 posts
Re: Show HN: HN Avatars in 357 bytes
#402This was inspired by @frncsdrk's submission from earlier today [0]. The generative concepts used were inspired by and derived from dweets from @KilledByAPixel and @FireFly [1] [2] [3] The concept is to use HN usernames as the seed into a deterministic avatar generator. This generator is built from the famously simple xorshift32 PRNG, which both provides a random variable for the image generator steps, and "pseudo-has…
further ungolfed: for (const huser of document.querySelectorAll(".hnuser")) { const s = huser.innerText; const p = 2; const canvas = document.createElement("canvas"); const context = canvas.getContext("2d"); canvas.width = p * 7; canvas.height = p * 7; huser.parentElement.prepend(canvas); { const xorshift32 = (n) => { n ^= n >> 17; n ^= n = seedSteps; i--) { seed = xorshift32(seed); seed += s.charCodeAt(i - seedSteps…
for (let i = seedSteps + s.length; i >= seedSteps; i--) to for (let i = seedSteps + s.length - 1; i >= seedSteps; i--)
The original is not using the for loop in the usual way so i starts off one smaller than expected.
Re: Show HN: HN Avatars in 357 bytes
#403Reply here if you just want to see how your username looks like, so we avoid noise and keep that Show HN on the top. comments are really interesting
Re: Show HN: HN Avatars in 357 bytes
#404gentle reminder not to paste internet code into your browser console
Re: Show HN: HN Avatars in 357 bytes
#405Earlier quoted context omitted.
But your avatar looks like a Ninja Turtle with shades on. You should be enjoying this. :)
Likely still traumatized by existence of new reddit UI. Old appears to be better.
Re: Show HN: HN Avatars in 357 bytes
#406Reply here if you just want to see how your username looks like, so we avoid noise and keep that Show HN on the top. comments are really interesting
Re: Show HN: HN Avatars in 357 bytes
#407Reply here if you just want to see how your username looks like, so we avoid noise and keep that Show HN on the top. comments are really interesting
Re: Show HN: HN Avatars in 357 bytes
#408Re: Show HN: HN Avatars in 357 bytes
#409Reply here if you just want to see how your username looks like, so we avoid noise and keep that Show HN on the top. comments are really interesting
Re: Show HN: HN Avatars in 357 bytes
#410Earlier quoted context omitted.
I don't actually like my avatar very much, lol. I can't decide whether it's a moustache and glasses or a bikini.
I see a bulldog with a flat top haircut (or old school phone) on it's head.
Thank you bird man.