humation 0.1.0
humation: ^0.1.0 copied to clipboard
Deterministic hand-drawn kawaii avatar engine for Dart. One seed in, one avatar out. Pure Dart, no Flutter, no network, no AI.
Example #
Generate an avatar as an SVG string. Pure Dart, no Flutter.
import 'package:humation/humation.dart';
import 'package:humation_assets_humation_1/humation_assets_humation_1.dart';
void main() {
final svg = createAvatar(
humation1Manifest,
const CreateAvatarOptions(seed: 'felix'),
).toSvg();
print(svg); // a self-contained <svg> ... </svg> string
}
Add the engine and an artwork pack:
dependencies:
humation: ^0.1.0
humation_assets_humation_1: ^0.1.0
For a Flutter widget instead of an SVG string, use
humation_flutter.