@avatar-generator/style-geometric
v3.1.0
Published
Geometric shapes avatar style for @avatar-generator/core
Maintainers
Readme
@avatar-generator/style-geometric
Geometric avatar style for @avatar-generator/core.
Grid-based shapes.
Install
npm install @avatar-generator/core @avatar-generator/style-geometricUsage
import { createAvatar } from "@avatar-generator/core";
import { geometric } from "@avatar-generator/style-geometric";
const avatar = createAvatar(geometric, {
seed: "[email protected]",
size: 64,
});
img.src = avatar.toDataUri();Options left unset are chosen deterministically from the seed. See the API reference for every option this style accepts, or the configurator to try them interactively.
Documentation
Full documentation: avatar-generator.hugoogb.dev
License
MIT © Hugo García Benjumea
