Repository navigation
Closed
Labels
area:fullstackEnd-to-end Host and Client implementationEnd-to-end Host and Client implementationarea:ui-uxInteraction and visual experience; may accompany a code-layer areaInteraction and visual experience; may accompany a code-layer areafeature:avatarPersonaBot avatar media and activity framePersonaBot avatar media and activity frameready-for-agentFully specified, ready for an AFK agentFully specified, ready for an AFK agentscope:tracerHuman-testable implementation sliceHuman-testable implementation slice
Description
Parent
Part of #1209. Requested on 2026-10-08 after #1211: every part should be drawable, starting from the existing built-in style, and still recolorable.
What to build
A Human picks their bangs, left side hair, right side hair or back hair and opens it in the Custom Part editor. The canvas starts from the built-in style they currently wear, flattened to cells. They reshape it with the same tools as a headpiece, save it to the Part Library and wear it in that hair slot. The drawn hair still recolors with the hair color, turns with the head, and is hidden by helmets, hoods and the flower species like the built-in piece it replaces.
Acceptance criteria
- BotPixel defines Custom Part slots
bangs,leftSideHair,rightSideHairandbackHair, each with its own canvas and layer rule.- Bangs are drawn over the forehead, under headwear.
- Side pieces are drawn in the hair layer beside the face.
- Back hair is drawn behind the head.
- Cells keep the Custom Parts 1: draw a headpiece into the Part Library and apply it #1211 model: an appearance color slot or fixed color, plus a tone.
- A hair slot holds either a built-in style or a worn Custom Part. Wearing a part keeps the built-in choice saved, and removing the part restores it.
- "Start from the current style" flattens the worn built-in piece for the current recipe into cells.
- Hair-colored pixels become
hairColorcells with their shading tones, so recoloring still works. - A visible note says the drawn piece keeps this shape and no longer adapts to face shape or hair length.
- Hair-colored pixels become
- Drawn hair follows head turns by the slot's shift and far-side rules. It is hidden but kept under a helmet or hood and on a flower, matching
hiddenChoices. - Hair outline and shading match built-in hair closely enough that a part flattened and saved unchanged renders identically to the built-in piece in the front pose.
- The editor offers these slots from the hair categories ("Draw / edit this piece"). The Part Library filters parts by slot.
- Recipes with drawn hair raise the recipe version and fall back to the snapshot on older Clients. Existing golden output is unchanged.
- Tests cover flattening, identical round-trip of an unchanged flattened piece, recoloring, turn rules, helmet/hood/flower hiding, and validation of each slot's bounds.
Blocked by
Metadata
Metadata
Assignees
Labels
area:fullstackEnd-to-end Host and Client implementationEnd-to-end Host and Client implementationarea:ui-uxInteraction and visual experience; may accompany a code-layer areaInteraction and visual experience; may accompany a code-layer areafeature:avatarPersonaBot avatar media and activity framePersonaBot avatar media and activity frameready-for-agentFully specified, ready for an AFK agentFully specified, ready for an AFK agentscope:tracerHuman-testable implementation sliceHuman-testable implementation slice
Activity
DoodleBears commentedon Oct 8, 2026
Claiming this tracer bullet. The BotPixel half goes first: hair-piece Custom Part slots, flattening the worn built-in piece into cells, and rendering with turn and hiding rules. The editor half follows on
claude/festive-gauss-gv7xu2once #1237 merges.Agent-Task:
claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8Generated by Claude Code
feat(avatar): drawn hair pieces starting from the built-in style
Draw hair pieces starting from the built-in style
fix(avatar): turn drawn back hair with its built-in style's offset
feat(avatar): drawn hair pieces starting from the built-in style (#12)
Use @botharness/pixel-avatar 0.6.0
feat(avatar): draw hair pieces starting from the built-in style (#1242)
DoodleBears commentedon Oct 8, 2026
Delivered in #1242 (squash
04da609) with@botharness/pixel-avatar0.6.0 (BotHarness/BotPixel#12).wolfback hair under a turn. Its notches follow a pattern fixed to the tile rather than the head, so a drawn copy can't match exactly.docs/assets/pr/1238-drawn-hair/. The speech in the recording is simulated.Agent-Task:
claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8Generated by Claude Code