Skip to content

Custom Parts 1b: draw hair pieces starting from the built-in style #1238

Closed

Description

@DoodleBears

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, rightSideHair and backHair, each with its own canvas and layer rule.
  • 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 hairColor cells 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.
  • 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

Activity

  1. added
    ready-for-agentFully specified, ready for an AFK agent
    area:ui-uxInteraction and visual experience; may accompany a code-layer area
    on Oct 8, 2026
  2. added
    feature:avatarPersonaBot avatar media and activity frame
    area:fullstackEnd-to-end Host and Client implementation
    scope:tracerHuman-testable implementation slice
    on Oct 8, 2026
  3. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    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-gv7xu2 once #1237 merges.

    Agent-Task: claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8


    Generated by Claude Code

  4. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 8, 2026
  5. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Delivered in #1242 (squash 04da609) with @botharness/pixel-avatar 0.6.0 (BotHarness/BotPixel#12).

    • Draw or edit this piece: bangs, left side hair, right side hair and back hair each gain this action.
      • The canvas starts from the worn piece flattened to cells, with a note that the drawn piece keeps this shape and no longer follows face shape or hair length.
      • Drawing uses a single layer over a backdrop without the piece being replaced.
    • Saving and restoring:
      • Saving goes to the Part Library and wears the piece in its slot, with library parts listed per slot.
      • Back to the built-in style restores the saved choice.
    • Rendering: drawn hair is shaded and recolored like built-in hair, follows turns with the built-in style's offset, and hides under helmets, hoods and on flowers. An unchanged flattened copy renders identically.
      • Exception: wolf back 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.
    • Evidence: docs/assets/pr/1238-drawn-hair/. The speech in the recording is simulated.
    • Not reviewed: CodeRabbit was rate-limited and hadn't reviewed this PR when it merged. Waiting for Human QA.

    Agent-Task: claude/cloud/session_01MozvQ2eMvqX1MzSqm9G2o8


    Generated by Claude Code

  6. removed
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:fullstackEnd-to-end Host and Client implementationarea:ui-uxInteraction and visual experience; may accompany a code-layer areafeature:avatarPersonaBot avatar media and activity frameready-for-agentFully specified, ready for an AFK agentscope:tracerHuman-testable implementation slice

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions