Answer the question
In order to leave comments, you need to log in
Procedural creation of unique avatars?
Hello.
How to create those of which the maximum number from the list (excluding real ones, of course)?
Needed in PHP and/or JS.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
The generation of this kind of pictures is based on the fact that a hash is calculated from the name / mail / some other parameter, and then based on it, a picture is already generated using some (often chosen by eye) algorithm. In javascript, it is convenient to do this on canvas, since it can be easily twisted and it is not difficult to make a symmetrical picture. It remains only if necessary to save it to a file, but this question is easily googled.
To illustrate, I will attach my example on codepen (it was written in haste, so don’t kick the code for ***)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question