Service to generate avatars for users Based upon https://github.com/boringdesigners/boring-avatars
The default color palette
Generates a random avatar for the given id Avatar is returned as Base64 encoded SVG data url
Gets whether the nth digit of a number is even
Gets the contrast color for a given color
Gets the nth digit of a number, starting from the right
Gets a random color from the provided list of colors based on the number
Generates a number required for rendering the image