humation_assets_humation_1 0.1.0 copy "humation_assets_humation_1: ^0.1.0" to clipboard
humation_assets_humation_1: ^0.1.0 copied to clipboard

The humation-1 asset pack (86 hand-drawn SVG parts plus manifest) for the humation avatar engine. Embedded as pure Dart, so it works on the server and the web with no asset loading.

humation_assets_humation_1 #

The humation-1 asset pack for the Humation avatar engine: 86 hand-drawn SVG parts plus the manifest that describes them.

The pack is embedded as a base64 Dart constant, so it needs no asset bundling and no file loading. It works on the server, on the web, and in Flutter alike.

Community port by Hark Singh, not affiliated with the Humation Labs team. The artwork is from humation-labs (MIT).

Install #

dependencies:
  humation: ^0.1.0
  humation_assets_humation_1: ^0.1.0

Flutter apps usually do not add this directly: humation_flutter already bundles it as the default pack.

Usage #

import 'package:humation/humation.dart';
import 'package:humation_assets_humation_1/humation_assets_humation_1.dart';

final manifest = humation1Manifest; // decoded lazily, cached
final svg = createAvatar(
  manifest,
  const CreateAvatarOptions(seed: 'felix'),
).toSvg();

prewarmHumation1() forces the one-time decode ahead of first use.

Contents #

  • 86 parts across five slots: head (24), body (8), bottom (8), item (43), glasses (3).
  • Six colour slots: background, stroke, hair, skin, clothes, bottom.

The bundled humation-1.json is taken verbatim from humation-swift, which generated it from @humation/assets-humation-1. Regenerate the embedded constant with node tool/embed.mjs.

License #

MIT. Artwork is from humation-labs/humation (MIT).

0
likes
150
points
33
downloads

Documentation

API reference

Publisher

verified publisher0xharkirat.com

Weekly Downloads

The humation-1 asset pack (86 hand-drawn SVG parts plus manifest) for the humation avatar engine. Embedded as pure Dart, so it works on the server and the web with no asset loading.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#avatar #svg #assets

License

MIT (license)

Dependencies

humation

More

Packages that depend on humation_assets_humation_1