- Add an optional per-node color so each shape added to the body can be colored independently from the body color. - Surface the color picker in the body construction panel, with a reset to inherit the body color. - Paint secondary primitive fills as motion values so they stay in sync with the geometry while the camera rotates, across avatar switches and on the exported snapshot / runtime renderers. - Preserve the node color through export and import of .avatar.json. - Double-click the 3D model to enter body construction editing (when not already editing). |
||
|---|---|---|
| .. | ||
| src | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
@bible-strong/avatar-web
DOM renderer for Bible Strong procedural avatars. It uses @bible-strong/avatar-core for schema
validation, playback and rendering, without requiring React.
pnpm add @bible-strong/avatar-web
import { createAvatar } from '@bible-strong/avatar-web'
import definition from './cloudee.avatar.json'
const avatar = createAvatar('#avatar', {
definition,
defaultAnimation: 'idle',
})
avatar.play('happy')
avatar.pause()
avatar.stop()
For a browser project without a bundler, load an ESM build through an import map or CDN and fetch
the definition JSON before calling createAvatar.
The package follows Semantic Versioning. While it remains below 1.0.0, breaking API changes
increment the minor version and fixes increment the patch version.