站点介绍
![]()
A regression suite kept failing on avatar screenshots last year. Two hours of digging later, the culprit was the avatars themselves — regenerated with fresh randomness every run, so nothing was actually broken. We pinned every test account to a fixed avatar seed and the noise vanished on the spot. Reproducibility is this tool's first design goal, not an afterthought.
There is no true randomness in a PRNG, only good seeding. The seed demo-0817 is hashed by FNV-1a into four 32-bit integers that become the xorshift128 initial state; every subsequent draw is a fixed sequence of bitwise transforms. Same seed, same color for stroke N, forever — that is not caching, that is arithmetic.
Feed it a Chinese character and it draws that character; feed it Wang and it draws W — first glyph for CJK, first letter uppercased for Latin. Fonts fall back through the system stack, so it renders wherever a CJK font exists. One honest caveat: the glyph shape itself follows the system font, so cross-device appearances vary slightly (the background and text colors are seed-deterministic and do not move).
The randomness comes from an xorshift128 generator: your seed string is hashed into four initial states via FNV-1a, and every draw afterwards is a deterministic mathematical transform. Same seed, same colors and coordinates for every stroke, pixel-identical PNG — safe to assert on in test suites.
Pixel face is a 5x5 mirrored dot grid; Geometric stacks circles and polygons; Initial badge sets a letter or CJK character on a color block with rings; Rings draws gradient target circles; Stripes cuts angled color bands; Checker fades a two-tone grid; Symmetric noise is a softer-palette GitHub-identicon cousin; Robot is a 9x9 retro pixel robot face.
Yes. Feed it a Chinese character and it draws that character; feed it Wang and it draws W. It takes the first character and uppercases Latin letters. Fonts fall back through the system stack, so CJK characters render on any device with a CJK font installed.
No, they ship with a solid palette background — the most universal choice across forums and chat apps where both light and dark themes exist. Removing a flat background from a square avatar is a lossless one-click job in any image editor.
Yes. Every avatar is drawn on the fly by math, not pulled from a stock library, so no third-party rights are involved. With seed reproducibility you can even write the seed into your docs and anyone on the team can re-export the identical image at any time.
No. Drawing and export all run inside this device's browser — zero uploads, zero requests. Settings live only in this browser's localStorage; the footer button clears them in one click.
中文版:https://www.9314.cn/tools/avatar-generator/
评论列表 (0条)