@avatar-generator/style-abstract
v3.1.0
Published
Abstract geometric art avatar style for @avatar-generator/core (Mondrian, Kandinsky, Bauhaus inspired)
Maintainers
Readme
@avatar-generator/style-abstract
Abstract avatar style for @avatar-generator/core.
Mondrian/Kandinsky/Bauhaus-inspired compositions.
Install
npm install @avatar-generator/core @avatar-generator/style-abstractUsage
import { createAvatar } from "@avatar-generator/core";
import { abstract } from "@avatar-generator/style-abstract";
const avatar = createAvatar(abstract, {
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
