Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(society): ten finished agent accessories and a safer look editor

rubenluetke10-beepd2585c59745d
diff --git a/art/studies/agent-symbol-companions/exports/accessories.glb b/art/studies/agent-symbol-companions/exports/accessories.glb
index 582e7c1585..268af558c0 100644
Binary files a/art/studies/agent-symbol-companions/exports/accessories.glb and b/art/studies/agent-symbol-companions/exports/accessories.glb differ
diff --git a/docs/agent-society/office-map.md b/docs/agent-society/office-map.md
index 6c743a3dd0..b5dfa2c332 100644
--- a/docs/agent-society/office-map.md
+++ b/docs/agent-society/office-map.md
@@ -123,8 +123,11 @@ target runs WebGL.
fifth of its height, reusing `AgentFollower`; the lead is drawn as the
person's own pet (see *Jarvis is the person's pet* below).
- **Accessories** (`companion/accessories.ts`): a symbol can wear one item per
- slot (hats, eyes, mouth, neck, outfit, back, props; 84 items) chosen in the
- companion editor and stored as `companion.accessories` in the avatar JSON.
+ slot, chosen in the agent profile's Appearance tab or the companion editor
+ and stored as `companion.accessories` in the avatar JSON. The set is ten
+ finished pieces (suit, tuxedo, lab coat, coder hoodie, crown, top hat, cap,
+ headphones, sunglasses, cigar); clothing starts just below the eyes with
+ sloped shoulders so the face stays free, and the hoodie's hood frames the head.
`scripts/art/companion_accessories.py` writes one catalog of 3D primitives
(`accessories.json`); the flat symbol draws their front projection and
`scripts/art/build_companion_accessories.py` (background Blender) builds the
diff --git a/jarvis/ui/web/frontend/src/assets/society/companions/accessories.glb b/jarvis/ui/web/frontend/src/assets/society/companions/accessories.glb
index 582e7c1585..268af558c0 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/companions/accessories.glb and b/jarvis/ui/web/frontend/src/assets/society/companions/accessories.glb differ
diff --git a/jarvis/ui/web/frontend/src/components/society/AgentSymbol.tsx b/jarvis/ui/web/frontend/src/components/society/AgentSymbol.tsx
index ddf7e92c18..2dc2d9f87e 100644
--- a/jarvis/ui/web/frontend/src/components/society/AgentSymbol.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/AgentSymbol.tsx
@@ -39,21 +39,23 @@ function roundedOutline(shape: "squircle" | "pill"): string {
const ROUNDED_OUTLINES = { squircle: roundedOutline("squircle"), pill: roundedOutline("pill") };
-function SymbolBody({ shape, color }: { shape: SymbolShape; color: string }) {
+/** grow > 0 widens the silhouette by that many units on every side (a hood rim). */
+function SymbolBody({ shape, color, grow = 0 }: { shape: SymbolShape; color: string; grow?: number }) {
+ const edge = (base: number) => base + grow * 2 > 0 ? { stroke: color, strokeWidth: base + grow * 2, strokeLinejoin: "round" as const } : {};
switch (shape) {
case "squircle":
case "pill":
- return <path d={ROUNDED_OUTLINES[shape]} fill={color} />;
+ return <path d={ROUNDED_OUTLINES[shape]} fill={color} {...edge(0)} />;
case "triangle":
- return <path d="M20 5.5 L36 33.5 L4 33.5 Z" fill={color} stroke={color} strokeWidth={5} strokeLinejoin="round" />;
+ return <path d="M20 5.5 L36 33.5 L4 33.5 Z" fill={color} {...edge(5)} />;
case "hexagon":
- return <path d="M20 3.5 L34.5 11.75 L34.5 28.25 L20 36.5 L5.5 28.25 L5.5 11.75 Z" fill={color} stroke={color} strokeWidth={3} strokeLinejoin="round" />;
+ return <path d="M20 3.5 L34.5 11.75 L34.5 28.25 L20 36.5 L5.5 28.25 L5.5 11.75 Z" fill={color} {...edge(3)} />;
case "cloud":
- return <path d="M11 32 a7.5 7.5 0 0 1 -1 -14.9 A9.5 9.5 0 0 1 29 12.5 A7 7 0 0 1 30 32 Z" fill={color} />;
+ return <path d="M11 32 a7.5 7.5 0 0 1 -1 -14.9 A9.5 9.5 0 0 1 29 12.5 A7 7 0 0 1 30 32 Z" fill={color} {...edge(0)} />;
case "drop":
- return <path d="M20 3 C20 3 6 20 6 27 a14 13.5 0 0 0 28 0 C34 20 20 3 20 3 Z" fill={color} />;
+ return <path d="M20 3 C20 3 6 20 6 27 a14 13.5 0 0 0 28 0 C34 20 20 3 20 3 Z" fill={color} {...edge(0)} />;
default:
- return <circle cx={20} cy={20} fill={color} r={16.2} />;
+ return <circle cx={20} cy={20} fill={color} r={16.2} {...edge(0)} />;
}
}
@@ -94,14 +96,18 @@ function AccessoryPartShape({ part, color }: { part: AccessoryPart; color: strin
}
case "region":
return <polygon points={part.pts.map(p => p.join(",")).join(" ")} fill={fill} />;
+ case "rim":
+ return null; // Drawn behind the body by AgentSymbol itself.
}
}
/** One worn item at its slot anchor: either its body patches or its free parts. */
function AccessoryItemShapes({ item, shape, color, regions }: { item: AccessoryItem; shape: SymbolShape; color: string; regions: boolean }) {
- const parts = item.parts.filter(part => (part.t === "region") === regions);
+ const parts = item.parts.filter(part => part.t !== "rim" && part.only !== "3d" && (part.t === "region") === regions);
if (!parts.length) return null;
- const [x, y, k] = ACCESSORY_CATALOG.shapes[shape].anchors[item.slot];
+ const [anchorX, y, anchorK] = ACCESSORY_CATALOG.shapes[shape].anchors[item.slot];
+ const k = anchorK * (item.scale ?? 1);
+ const x = anchorX + (ACCESSORY_CATALOG.slotFlatShift[item.slot] ?? 0);
// Paint back to front; body patches keep their authored layering.
const ordered = regions ? parts : [...parts].sort((a, b) => partDepth(a) - partDepth(b));
return <g data-accessory={item.id} transform={`translate(${x} ${y}) scale(${k})`}>
@@ -123,6 +129,17 @@ export function AgentSymbol({ shape, color, size, eyes = "lines", thinking = fal
<svg aria-hidden focusable="false" data-agent-symbol={shape} data-thinking={thinking ? "true" : undefined} width={size} height={size} style={{ width: size, height: size, flexShrink: 0 }} viewBox={viewBox} className="society-agent-symbol block">
<g className="agent-symbol-character">
{draw(worn.filter(item => item.slot === "back"))}
+ {worn.flatMap(item => item.parts.map((part, index) => {
+ if (part.t !== "rim") return null;
+ // A hood frames the head only: clip the grown silhouette at maxY below the neckline.
+ const [, anchorY, anchorK] = ACCESSORY_CATALOG.shapes[shape].anchors[item.slot];
+ const clipId = `${maskId}-rim-${index}`;
+ const bottom = part.maxY === undefined ? 90 : anchorY + part.maxY * anchorK;
+ return <g key={`${item.id}-rim-${index}`} data-accessory-rim={item.id}>
+ <clipPath id={clipId}><rect x={-30} y={-30} width={100} height={bottom + 30} /></clipPath>
+ <g clipPath={`url(#${clipId})`}><SymbolBody shape={shape} color={resolveFill(part.fill, color)} grow={part.w} /></g>
+ </g>;
+ }))}
<g data-agent-body><SymbolBody shape={shape} color={color} /></g>
{worn.some(item => item.regions) && <>
<mask id={maskId} maskUnits="userSpaceOnUse" x={-20} y={-20} width={80} height={84}><SymbolBody shape={shape} color="#ffffff" /></mask>
diff --git a/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.test.tsx b/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.test.tsx
index 8ca346b597..781b6a0e98 100644
--- a/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.test.tsx
@@ -115,12 +115,12 @@ it("opens the avatar profile without selecting the chat and leaves name-click na
it("customizes the agent's look and saves it with the character recipe kept", async () => {
const { fetcher } = setup();
fireEvent.click(screen.getAllByRole("button", { name: "society.profile_card.look" })[0]);
- fireEvent.click(await screen.findByRole("button", { name: "society.companion.items.crown" }));
+ fireEvent.click(await screen.findByRole("button", { name: "society.companion.items.suit" }));
fireEvent.click(screen.getByRole("button", { name: "society.card.save" }));
await screen.findByText("society.profile_card.saved");
const call = fetcher.mock.calls.find(([url, init]) => String(url) === "/api/society/agents/research" && init?.method === "PATCH");
const body = JSON.parse(String(call?.[1]?.body));
- expect(body.avatar.companion.accessories).toEqual({ head: "crown" });
+ expect(body.avatar.companion.accessories).toEqual({ outfit: "suit" });
const { companion: _old, ...recipe } = agent.figure ?? {};
expect(body.avatar).toMatchObject(recipe);
expect(body.title).toBe("Researcher");
diff --git a/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.tsx b/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.tsx
index 60a05e7b2b..050ae04db8 100644
--- a/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/card/AgentProfileDialog.tsx
@@ -140,7 +140,7 @@ export function AgentProfileDialog({ agent, sample, onClose }: {
</dl>
</TabsContent>
{!lead && <TabsContent value="look" className="min-h-0 flex-1 overflow-y-auto px-2 pb-4">
- <CompanionEditor value={look} onChange={setLook} disabled={sample || save.isPending} />
+ <CompanionEditor value={look} onChange={setLook} disabled={sample || save.isPending} preview3d={false} />
</TabsContent>}
<TabsContent value="memory" className="mt-3 min-h-0 flex-1 overflow-hidden"><AgentMemoryFiles agentId={agent.agentId} sample={sample} /></TabsContent>
</Tabs>
diff --git a/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx b/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx
index d972537590..deba92ecc4 100644
--- a/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/companion/AccessoryPicker.tsx
@@ -2,23 +2,24 @@ import { useState } from "react";
import { Shuffle, X } from "lucide-react";
import { useT } from "@/i18n";
import { AgentSymbol } from "../AgentSymbol";
-import { ACCESSORY_IDS_BY_SLOT, randomAccessories, type AccessoryChoice, type AccessorySlot } from "./accessories";
+import { ACCESSORY_IDS_BY_SLOT, OFFERED_SLOTS, randomAccessories, type AccessoryChoice, type AccessorySlot } from "./accessories";
import type { CompanionAppearance } from "./appearance";
-/** Picker order: what people change most comes first. */
-const PICKER_SLOTS: AccessorySlot[] = ["head", "face", "mouth", "neck", "outfit", "back", "held"];
+/** Picker order: what people change most comes first; empty slots stay hidden. */
+const PICKER_SLOTS = (["outfit", "head", "face", "mouth", "neck", "back", "held"] as AccessorySlot[])
+ .filter(slot => OFFERED_SLOTS.includes(slot));
/** One tile per item, each showing this agent already wearing it. */
export function AccessoryPicker({ value, onChange }: { value: CompanionAppearance; onChange: (next: AccessoryChoice) => void }) {
const t = useT();
- const [slot, setSlot] = useState<AccessorySlot>("head");
+ const [slot, setSlot] = useState<AccessorySlot>(PICKER_SLOTS[0] ?? "head");
const worn = value.accessories;
const choose = (id: string | undefined) => {
const next = { ...worn };
if (id) next[slot] = id; else delete next[slot];
onChange(next);
};
- const tile = "grid h-14 w-14 place-items-center rounded-lg border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";
+ const tile = "grid h-[76px] w-[76px] place-items-center rounded-lg border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";
return <div data-testid="accessory-picker">
<div className="mb-2 flex items-center justify-between gap-2">
<span className="text-sm font-medium">{t("society.companion.accessories")}</span>
@@ -48,7 +49,7 @@ export function AccessoryPicker({ value, onChange }: { value: CompanionAppearanc
const active = worn[slot] === id;
return <button key={id} type="button" aria-pressed={active} aria-label={label} title={label} onClick={() => choose(id)}
className={`${tile} ${active ? "border-foreground bg-secondary" : "border-border hover:bg-secondary"}`}>
- <AgentSymbol shape={value.shape} color={value.color} eyes={value.eyes} accessories={{ ...worn, [slot]: id }} size={46} />
+ <AgentSymbol shape={value.shape} color={value.color} eyes={value.eyes} accessories={{ ...worn, [slot]: id }} size={60} />
</button>;
})}
</div>
diff --git a/jarvis/ui/web/frontend/src/components/society/companion/AgentFollower.tsx b/jarvis/ui/web/frontend/src/components/society/companion/AgentFollower.tsx
index 76b5cd153e..ab696df373 100644
--- a/jarvis/ui/web/frontend/src/components/society/companion/AgentFollower.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/companion/AgentFollower.tsx
@@ -67,7 +67,7 @@ function CompanionAccessories({ appearance }: { appearance: CompanionAppearance
const node = free.clone(true);
node.position.set((x - 20) * unit, (meta.bottom - y) * unit, ACCESSORY_CATALOG.slotDepth[item.slot] * ACCESSORY_CATALOG.frontDepthM);
node.rotation.set(0, 0, 0);
- node.scale.setScalar(k * unit);
+ node.scale.setScalar(k * (item.scale ?? 1) * unit);
group.add(node);
}
// Clothing is authored per silhouette, already in the master's frame.
diff --git a/jarvis/ui/web/frontend/src/components/society/companion/CompanionEditor.tsx b/jarvis/ui/web/frontend/src/components/society/companion/CompanionEditor.tsx
index a7874271cb..aa91845f72 100644
--- a/jarvis/ui/web/frontend/src/components/society/companion/CompanionEditor.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/companion/CompanionEditor.tsx
@@ -1,6 +1,5 @@
import { useT } from "@/i18n";
import { Switch } from "@/components/ui/switch";
-import { BrandedSelect } from "@/components/ui/select";
import { AgentSymbol } from "../AgentSymbol";
import { AccessoryPicker } from "./AccessoryPicker";
import { COMPANION_COLORS, COMPANION_SHAPES, type CompanionAppearance } from "./appearance";
@@ -8,8 +7,10 @@ import gigiMark from "@/assets/gigi-companion-avatar.png";
import { lazy, Suspense } from "react";
const CompanionPreview = lazy(() => import("./CompanionPreview").then(m => ({ default: m.CompanionPreview })));
-export function CompanionEditor({ value, onChange, disabled = false, lead = false }: {
+export function CompanionEditor({ value, onChange, disabled = false, lead = false, preview3d = true }: {
value: CompanionAppearance; onChange: (next: CompanionAppearance) => void; disabled?: boolean; lead?: boolean;
+ /** The 3D turntable needs its own WebGL context; dialogs outside the map skip it. */
+ preview3d?: boolean;
}) {
const t = useT();
const update = (patch: Partial<CompanionAppearance>) => onChange({ ...value, ...patch });
@@ -18,7 +19,7 @@ export function CompanionEditor({ value, onChange, disabled = false, lead = fals
{lead ? <img src={gigiMark} width={88} height={88} alt="" /> : <AgentSymbol {...value} size={88} />}
<div><h3 className="font-medium">{t("society.companion.title")}</h3><p className="mt-1 text-sm text-muted-foreground">{t("society.companion.hint")}</p></div>
</div>
- <Suspense fallback={null}><CompanionPreview appearance={value} lead={lead} /></Suspense>
+ {preview3d && <Suspense fallback={null}><CompanionPreview appearance={value} lead={lead} /></Suspense>}
{!lead && <><div><span className="mb-2 block text-sm font-medium">{t("society.companion.shape")}</span>
<div className="flex flex-wrap gap-2">{COMPANION_SHAPES.map(shape => <button key={shape} type="button"
aria-label={t(`society.companion.shapes.${shape}`)} aria-pressed={value.shape === shape}
@@ -33,9 +34,13 @@ export function CompanionEditor({ value, onChange, disabled = false, lead = fals
</div>
</div>
<div className="flex items-center justify-between gap-3 text-sm"><span>{t("society.companion.eyes")}</span>
- <BrandedSelect ariaLabel={t("society.companion.eyes")} className="rounded-md border border-border bg-background p-2 text-foreground"
- disabled={disabled} value={value.eyes} onValueChange={eyes => update({ eyes: eyes as CompanionAppearance["eyes"] })}
- options={[{ value: "dots", label: t("society.companion.dots") }, { value: "lines", label: t("society.companion.lines") }]} />
+ {/* Plain toggles: a popup menu inside a modal dialog can strand its pointer lock. */}
+ <div className="flex gap-1.5" role="group" aria-label={t("society.companion.eyes")}>
+ {(["dots", "lines"] as const).map(eyes => <button key={eyes} type="button" aria-pressed={value.eyes === eyes} onClick={() => update({ eyes })}
+ className={`rounded-full border px-2.5 py-1 text-xs ${value.eyes === eyes ? "border-transparent bg-primary text-primary-foreground" : "border-border bg-background text-foreground hover:bg-secondary"}`}>
+ {t(`society.companion.${eyes}`)}
+ </button>)}
+ </div>
</div>
<AccessoryPicker value={value} onChange={accessories => update({ accessories })} />
</>}
diff --git a/jarvis/ui/web/frontend/src/components/society/companion/accessories.json b/jarvis/ui/web/frontend/src/components/society/companion/accessories.json
index e714a54233..bd1b4fe96e 100644
--- a/jarvis/ui/web/frontend/src/components/society/companion/accessories.json
+++ b/jarvis/ui/web/frontend/src/components/society/companion/accessories.json
@@ -1 +1 @@
-{"schema":1,"slots":["back","outfit","neck","mouth","face","head","held"],"slotDepth":{"back":-1,"outfit":1,"neck":1,"mouth":1,"face":1,"head":0,"held":0.4},"frontDepthM":0.25,"shapes":{"circle":{"top":3.8,"bottom":36.2,"eyeY":17.2,"anchors":{"head":[20,5.2,1],"neck":[20,27.6,1],"held":[33.5,29,1.35],"back":[20,20,1],"face":[20,17.2,1],"mouth":[20,24.0,1.15],"outfit":[20,27.6,1]}},"squircle":{"top":3.8,"bottom":36.2,"eyeY":17.2,"anchors":{"head":[20,4.4,1],"neck":[20,27.6,1],"held":[34,29,1.35],"back":[20,20,1],"face":[20,17.2,1],"mouth":[20,24.0,1.15],"outfit":[20,27.6,1]}},"pill":{"top":8.48,"bottom":31.52,"eyeY":17.2,"anchors":{"head":[20,9.6,0.95],"neck":[20,26.2,0.92],"held":[35.5,26,1.282],"back":[20,20,0.95],"face":[20,17.2,1],"mouth":[20,24.0,1.15],"outfit":[20,26.2,0.92]}},"triangle":{"top":5.5,"bottom":33.5,"eyeY":23,"anchors":{"head":[20,8.6,0.72],"neck":[20,30.4,0.8],"held":[32.5,31,1.215],"back":[20,22,0.9],"face":[20,23,0.9],"mouth":[20,29.12,1.035],"outfit":[20,30.4,0.8]}},"hexagon":{"top":3.5,"bottom":36.5,"eyeY":17.2,"anchors":{"head":[20,5.8,0.9],"neck":[20,27.6,0.95],"held":[33,29,1.282],"back":[20,20,0.95],"face":[20,17.2,1],"mouth":[20,24.0,1.15],"outfit":[20,27.6,0.95]}},"cloud":{"top":5.028,"bottom":32,"eyeY":23,"anchors":{"head":[19.2,6.6,0.95],"neck":[20,30,0.8],"held":[37,27.5,1.215],"back":[21,20,1],"face":[20,23,0.9],"mouth":[20,29.12,1.035],"outfit":[20,30,0.8]}},"drop":{"top":3,"bottom":40.5,"eyeY":25,"anchors":{"head":[20,9.6,0.72],"neck":[20,33.8,0.92],"held":[32.5,34,1.282],"back":[20,25,0.95],"face":[20,25,1],"mouth":[20,31.8,1.15],"outfit":[20,33.8,0.92]}}},"items":[{"id":"crown","slot":"head","bounds":[-10.59,-11.45,10.59,0.2],"regions":false,"parts":[{"t":"cyl","c":[0,-2,0],"r":[8,8.6],"h":4.4,"dz":1.0,"fill":"#f2c14e"},{"t":"cyl","c":[0.0,-6.8,8.3],"r":[2.7,0],"h":6.2,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[0.0,-10.4,8.3],"r":[1.05,1.05,1.05],"fill":"#f2c14e"},{"t":"cyl","c":[7.894,-6.8,2.565],"r":[2.7,0],"h":6.2,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[7.894,-10.4,2.565],"r":[1.05,1.05,1.05],"fill":"#f2c14e"},{"t":"cyl","c":[4.879,-6.8,-6.715],"r":[2.7,0],"h":6.2,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[4.879,-10.4,-6.715],"r":[1.05,1.05,1.05],"fill":"#f2c14e"},{"t":"cyl","c":[-4.879,-6.8,-6.715],"r":[2.7,0],"h":6.2,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[-4.879,-10.4,-6.715],"r":[1.05,1.05,1.05],"fill":"#f2c14e"},{"t":"cyl","c":[-7.894,-6.8,2.565],"r":[2.7,0],"h":6.2,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[-7.894,-10.4,2.565],"r":[1.05,1.05,1.05],"fill":"#f2c14e"},{"t":"sphere","c":[0,-2,8.7],"r":[1.6,1.6,0.8],"fill":"#e0483e"},{"t":"sphere","c":[-5.2,-2,6.9],"r":[1.1,1.1,0.6],"fill":"#2f6fe0"},{"t":"sphere","c":[5.2,-2,6.9],"r":[1.1,1.1,0.6],"fill":"#2f6fe0"}]},{"id":"top_hat","slot":"head","bounds":[-12.07,-15.17,11.92,1.56],"regions":false,"parts":[{"t":"cyl","c":[-0.073,-0.596,0],"r":[12,12],"h":1.4,"dz":1.0,"fill":"#2a2a31","rot":-7.0},{"t":"cyl","c":[-0.951,-7.742,0],"r":[7.6,8],"h":13,"dz":1.0,"fill":"#33333b","rot":-7.0},{"t":"cyl","c":[-0.317,-2.581,0],"r":[7.85,7.9],"h":2.8,"dz":1.0,"fill":"body","rot":-7.0}]},{"id":"party_hat","slot":"head","bounds":[-6.43,-17.47,6.43,1.48],"regions":false,"parts":[{"t":"cyl","c":[1.687,-7.308,0],"r":[6.6,0],"h":15,"dz":1.0,"fill":"#f472b6","rot":13.0},{"t":"sphere","c":[-0.839,-3.478,4.6],"r":[1.1,1.1,0.5],"fill":"#fde047","rot":13.0},{"t":"sphere","c":[3.373,-3.942,3.6],"r":[1,1,0.5],"fill":"#22d3ee","rot":13.0},{"t":"sphere","c":[1.26,-8.125,2.6],"r":[0.9,0.9,0.5],"fill":"#a78bfa","rot":13.0},{"t":"sphere","c":[3.509,-15.2,0],"r":[2.3,2.3,2.3],"fill":"#fde047","rot":13.0}]},{"id":"cap","slot":"head","bounds":[-9.2,-7.6,9.2,3.3],"regions":false,"parts":[{"t":"dome","c":[0,1.6,0],"r":[9.2,8,9.2],"fill":"#2f6fe0"},{"t":"sphere","c":[0,1.9,8.2],"r":[8.8,1.4,6.2],"fill":"#1f4fb0"},{"t":"sphere","c":[0,-6.4,0],"r":[1.2,1.2,1.2],"fill":"#1f4fb0"}]},{"id":"beanie","slot":"head","bounds":[-10.0,-11.4,10.0,4.4],"regions":false,"parts":[{"t":"dome","c":[0,2.2,0],"r":[9.6,9.8,9.6],"fill":"#e0483e"},{"t":"cyl","c":[0,2.4,0],"r":[10,10],"h":4,"dz":1.0,"fill":"#a8322b"},{"t":"sphere","c":[0,-8.4,0],"r":[3,3,3],"fill":"#f5f0e6"}]},{"id":"cowboy_hat","slot":"head","bounds":[-16.23,-9.47,16.04,2.04],"regions":false,"parts":[{"t":"sphere","c":[0.017,0.199,0],"r":[15,1.3,12],"fill":"#a8692e","rot":-5.0},{"t":"sphere","c":[-13.843,0.107,0],"r":[2.4,1.7,5],"fill":"#a8692e","rot":-5.0},{"t":"sphere","c":[13.652,-2.299,0],"r":[2.4,1.7,5],"fill":"#a8692e","rot":-5.0},{"t":"cyl","c":[-0.401,-4.582,0],"r":[6.9,5.8],"h":8.8,"dz":1.0,"fill":"#b8773a","rot":-5.0},{"t":"cyl","c":[-0.139,-1.594,0],"r":[6.8,6.6],"h":1.8,"dz":1.0,"fill":"#3b2414","rot":-5.0}]},{"id":"wizard_hat","slot":"head","bounds":[-12.8,-20.09,12.8,2.58],"regions":false,"parts":[{"t":"sphere","c":[0.0,0.0,0],"r":[13,1.3,11],"fill":"#4c2a96","rot":-10.0},{"t":"cyl","c":[-1.771,-10.045,0],"r":[7.8,0],"h":20.4,"dz":1.0,"fill":"#5b35b8","rot":-10.0},{"t":"cyl","c":[-0.278,-1.576,0],"r":[7.3,7.0],"h":1.8,"dz":1.0,"fill":"#f2c14e","rot":-10.0},{"t":"poly","pts":[[-0.323,-9.894],[0.475,-8.582],[2.001,-8.76],[1.0,-7.595],[1.642,-6.199],[0.224,-6.792],[-0.905,-5.75],[-0.78,-7.282],[-2.12,-8.034],[-0.624,-8.388]],"z":4.4,"d":0.6,"smooth":false,"fill":"#f2c14e","glow":true},{"t":"sphere","c":[-3.926,-11.899,1.8],"r":[0.6,0.6,0.6],"fill":"#f2c14e","glow":true,"rot":-10.0},{"t":"sphere","c":[0.122,-4.489,6.2],"r":[0.5,0.5,0.5],"fill":"#f2c14e","glow":true,"rot":-10.0}]},{"id":"halo","slot":"head","bounds":[-9.15,-11.02,9.15,-3.78],"regions":false,"parts":[{"t":"torus","c":[0,-7.4,0],"R":8,"r":1.15,"tilt":72,"fill":"#fde68a","glow":true}]},{"id":"viking_helmet","slot":"head","bounds":[-15.74,-8.4,15.74,3.6],"regions":false,"parts":[{"t":"dome","c":[0,2,0],"r":[9.8,8.8,9.8],"fill":"#9aa3ad"},{"t":"cyl","c":[0,2.2,0],"r":[10.1,10.1],"h":2.8,"dz":1.0,"fill":"#a77b2c"},{"t":"sphere","c":[-4.6,2.2,9],"r":[0.7,0.7,0.7],"fill":"#e7d39a"},{"t":"sphere","c":[0,2.2,10.1],"r":[0.7,0.7,0.7],"fill":"#e7d39a"},{"t":"sphere","c":[4.6,2.2,9],"r":[0.7,0.7,0.7],"fill":"#e7d39a"},{"t":"tube","pts":[[0,-2,0],[-0.4,-5,0],[-0.8,-8,0]],"w":0.8,"smooth":false,"fill":"#a77b2c"},{"t":"cyl","c":[12.972,-4.214,0],"r":[2.5,0.3],"h":9,"dz":1.0,"fill":"#efe4cc","rot":34.0},{"t":"cyl","c":[-12.972,-4.214,0],"r":[2.5,0.3],"h":9,"dz":1.0,"fill":"#efe4cc","rot":-34.0}]},{"id":"chef_hat","slot":"head","bounds":[-10.2,-16.7,10.2,1.1],"regions":false,"parts":[{"t":"cyl","c":[0,-1.2,0],"r":[8.2,8.8],"h":4.6,"dz":1.0,"fill":"#fafaf8"},{"t":"sphere","c":[-4.8,-7.8,0],"r":[5.4,5.4,5.4],"fill":"#f4f4f0"},{"t":"sphere","c":[4.8,-7.8,0],"r":[5.4,5.4,5.4],"fill":"#f4f4f0"},{"t":"sphere","c":[0,-10.6,0],"r":[6.1,6.1,6.1],"fill":"#fafaf8"},{"t":"cyl","c":[0,0.6,0],"r":[8.3,8.3],"h":0.8,"dz":1.0,"fill":"#e4e2dc"}]},{"id":"grad_cap","slot":"head","bounds":[-10.5,-7.4,11.9,3.0],"regions":false,"parts":[{"t":"cyl","c":[0,-2.4,0],"r":[7.6,7.8],"h":5,"dz":1.0,"fill":"#374151"},{"t":"box","c":[0,-5.6,0],"s":[21,2.2,21],"round":0.4,"fill":"#2b3445"},{"t":"sphere","c":[0,-6.5,0],"r":[0.9,0.9,0.9],"fill":"#f2c14e"},{"t":"tube","pts":[[0,-6.4,0.6],[8,-6.4,6],[10.4,-4.6,7.6],[10.6,0.2,7.6]],"w":0.8,"smooth":true,"fill":"#f2c14e"},{"t":"cyl","c":[10.6,1.6,7.6],"r":[1.3,0.5],"h":2.8,"dz":1.0,"fill":"#f2c14e"}]},{"id":"headphones","slot":"head","bounds":[-15.8,-9.3,15.8,11.7],"regions":false,"parts":[{"t":"tube","pts":[[-12.6,6,0],[-11.8,-1.6,0],[-6.6,-6.8,0],[0,-8.2,0],[6.6,-6.8,0],[11.8,-1.6,0],[12.6,6,0]],"w":2.2,"smooth":true,"fill":"#26262b"},{"t":"sphere","c":[-13,7.2,0],"r":[2.8,4.5,4.4],"fill":"#e0483e"},{"t":"sphere","c":[13,7.2,0],"r":[2.8,4.5,4.4],"fill":"#e0483e"}]},{"id":"bunny_ears","slot":"head","bounds":[-9.91,-14.62,9.91,2.05],"regions":false,"parts":[{"t":"poly","pts":[[8.174,-14.616],[9.913,-12.367],[9.688,-6.056],[6.996,2.046],[4.463,1.462],[1.929,0.877],[3.062,-7.585],[5.626,-13.357]],"z":0,"d":2.4,"smooth":true,"fill":"#f5f3f0"},{"t":"poly","pts":[[7.634,-12.277],[8.444,-10.448],[7.994,-5.831],[6.292,-0.682],[5.025,-0.974],[3.758,-1.267],[4.486,-6.641],[6.105,-10.988]],"z":1.3,"d":0.6,"smooth":true,"fill":"#f9a8d4"},{"t":"poly","pts":[[-5.626,-13.357],[-3.062,-7.585],[-1.929,0.877],[-4.463,1.462],[-6.996,2.046],[-9.688,-6.056],[-9.913,-12.367],[-8.174,-14.616]],"z":0,"d":2.4,"smooth":true,"fill":"#f5f3f0"},{"t":"poly","pts":[[-6.105,-10.988],[-4.486,-6.641],[-3.758,-1.267],[-5.025,-0.974],[-6.292,-0.682],[-7.994,-5.831],[-8.444,-10.448],[-7.634,-12.277]],"z":1.3,"d":0.6,"smooth":true,"fill":"#f9a8d4"}]},{"id":"cat_ears","slot":"head","bounds":[-11.39,-9.5,11.39,3.95],"regions":false,"parts":[{"t":"poly","pts":[[0.932,0.552],[8.193,-9.496],[11.394,3.951]],"z":0,"d":2.6,"smooth":false,"fill":"body"},{"t":"poly","pts":[[3.838,0.024],[7.271,-6.011],[8.974,1.693]],"z":1.5,"d":0.6,"smooth":false,"fill":"#f9a8d4"},{"t":"poly","pts":[[-11.394,3.951],[-8.193,-9.496],[-0.932,0.552]],"z":0,"d":2.6,"smooth":false,"fill":"body"},{"t":"poly","pts":[[-8.974,1.693],[-7.271,-6.011],[-3.838,0.024]],"z":1.5,"d":0.6,"smooth":false,"fill":"#f9a8d4"}]},{"id":"devil_horns","slot":"head","bounds":[-8.26,-6.58,8.26,1.18],"regions":false,"parts":[{"t":"cyl","c":[6.874,-3.152,0],"r":[2.4,0],"h":7.4,"dz":1.0,"fill":"#d42f2f","rot":22.0},{"t":"cyl","c":[-6.874,-3.152,0],"r":[2.4,0],"h":7.4,"dz":1.0,"fill":"#d42f2f","rot":-22.0}]},{"id":"flower","slot":"head","bounds":[-11.66,-6.0,-0.2,4.8],"regions":false,"parts":[{"t":"sphere","c":[-6.4,-3.5,2.6],"r":[2.5,2.5,1.3],"fill":"#f9a8d4"},{"t":"sphere","c":[-3.642,-1.496,2.6],"r":[2.5,2.5,1.3],"fill":"#f9a8d4"},{"t":"sphere","c":[-4.695,1.746,2.6],"r":[2.5,2.5,1.3],"fill":"#f9a8d4"},{"t":"sphere","c":[-8.105,1.746,2.6],"r":[2.5,2.5,1.3],"fill":"#f9a8d4"},{"t":"sphere","c":[-9.158,-1.496,2.6],"r":[2.5,2.5,1.3],"fill":"#f9a8d4"},{"t":"sphere","c":[-6.4,-0.6,3.4],"r":[1.7,1.7,1],"fill":"#fde047"},{"t":"poly","pts":[[-5.4,1.8],[-2.681,1.291],[-0.204,4.8],[-4.042,4.247]],"z":1.6,"d":0.6,"smooth":true,"fill":"#5fae3a"}]},{"id":"antennae","slot":"head","bounds":[-8.45,-11.78,8.45,2.01],"regions":false,"parts":[{"t":"tube","pts":[[3.437,1.455,0],[5.832,-8.15,0]],"w":1.1,"smooth":false,"fill":"#3f3f46"},{"t":"sphere","c":[6.171,-9.509,0],"r":[2.3,2.3,2.3],"fill":"#a3e635","glow":true,"rot":14.0},{"t":"tube","pts":[[-3.437,1.455,0],[-5.832,-8.15,0]],"w":1.1,"smooth":false,"fill":"#3f3f46"},{"t":"sphere","c":[-6.171,-9.509,0],"r":[2.3,2.3,2.3],"fill":"#a3e635","glow":true,"rot":-14.0}]},{"id":"propeller_cap","slot":"head","bounds":[-9.4,-10.45,9.4,2.9],"regions":false,"parts":[{"t":"dome","c":[0,1.8,0],"r":[9.2,7.8,9.2],"fill":"#f43f5e"},{"t":"cyl","c":[0,2,0],"r":[9.4,9.4],"h":1.8,"dz":1.0,"fill":"#facc15"},{"t":"tube","pts":[[0,-5.6,0],[0,-8.8,0]],"w":1,"smooth":false,"fill":"#3f3f46"},{"t":"box","c":[0,-9.2,0],"s":[17.4,1.1,3.2],"round":0.5,"fill":"#3b82f6"},{"t":"sphere","c":[0,-9.2,0],"r":[1.25,1.25,1.25],"fill":"#facc15"}]},{"id":"santa_hat","slot":"head","bounds":[-9.8,-15.3,9.8,3.5],"regions":false,"parts":[{"t":"cyl","c":[2.2,-6.2,0],"r":[8.6,0.6],"h":13,"dz":1.0,"fill":"#d42f2f","rot":22},{"t":"cyl","c":[0,1.6,0],"r":[9.8,9.8],"h":3.8,"dz":1.0,"fill":"#fafafa"},{"t":"sphere","c":[4.8,-12.6,0],"r":[2.7,2.7,2.7],"fill":"#fafafa"}]},{"id":"bow","slot":"head","bounds":[-0.47,-3.94,12.98,3.48],"regions":false,"parts":[{"t":"sphere","c":[3.132,-1.337,0],"r":[3.6,2.6,1.6],"fill":"#ec4899","rot":-2},{"t":"sphere","c":[9.668,0.537,0],"r":[3.6,2.6,1.6],"fill":"#ec4899","rot":34},{"t":"sphere","c":[6.4,-0.4,0.8],"r":[1.5,1.7,1.2],"fill":"#be185d","rot":16.0}]},{"id":"sprout","slot":"head","bounds":[-6.06,-9.7,5.2,2.05],"regions":false,"parts":[{"t":"tube","pts":[[0,1.5,0],[0.4,-3,0],[0,-6.4,0]],"w":1.1,"smooth":true,"fill":"#5fae3a"},{"t":"poly","pts":[[0.0,-6.2],[-3.222,-5.52],[-6.062,-9.7],[-1.545,-9.124]],"z":0,"d":0.8,"smooth":true,"fill":"#84cc16"},{"t":"poly","pts":[[0.0,-6.2],[0.819,-8.982],[5.196,-9.2],[2.878,-6.014]],"z":0,"d":0.8,"smooth":true,"fill":"#84cc16"}]},{"id":"pirate_hat","slot":"head","bounds":[-14.32,-9.82,14.41,1.6],"regions":false,"parts":[{"t":"poly","pts":[[-14.323,1.603],[-12.76,-4.721],[-7.04,-8.931],[-0.586,-8.38],[5.729,-9.824],[11.979,-6.451],[14.407,-0.406],[6.287,-1.843],[-0.07,-0.998],[-6.482,-0.95]],"z":0,"d":8,"smooth":true,"fill":"#34343e"},{"t":"tube","pts":[[-13.766,0.963,4.1],[-6.51,-1.349,4.1],[-0.098,-1.397,4.1],[6.259,-2.242,4.1],[13.766,-0.963,4.1]],"w":0.9,"smooth":true,"fill":"#f2c14e"},{"t":"sphere","c":[-0.349,-4.988,4.3],"r":[2.3,2.1,0.6],"fill":"#f4f4f5","rot":-4.0},{"t":"box","c":[-0.195,-2.793,4.3],"s":[2,1.2,0.6],"round":0.3,"fill":"#f4f4f5","rot":-4.0},{"t":"sphere","c":[-1.161,-5.132,4.9],"r":[0.5,0.5,0.5],"fill":"#101014","rot":-4.0},{"t":"sphere","c":[0.435,-5.243,4.9],"r":[0.5,0.5,0.5],"fill":"#101014","rot":-4.0}]},{"id":"sweatband","slot":"head","bounds":[0,0,0,0],"regions":true,"parts":[{"t":"region","pts":[[-60,1.2],[60,1.2],[60,4.4],[-60,4.4]],"mode":"wrap","fill":"#e0483e"},{"t":"region","pts":[[-60,2.4],[60,2.4],[60,3.2],[-60,3.2]],"mode":"front","fill":"#fafafa"}]},{"id":"sunglasses","slot":"face","bounds":[-8.7,-2.6,8.7,3.0],"regions":false,"parts":[{"t":"box","c":[4.9,0.2,0.9],"s":[7.6,5.6,1.2],"round":2.2,"fill":"#121216"},{"t":"tube","pts":[[2.7,-1.0,1.6],[4.0,-2.0,1.6]],"w":0.7,"smooth":false,"fill":"#e7e7ea"},{"t":"box","c":[-4.9,0.2,0.9],"s":[7.6,5.6,1.2],"round":2.2,"fill":"#121216"},{"t":"tube","pts":[[-2.7,-1.0,1.6],[-4.0,-2.0,1.6]],"w":0.7,"smooth":false,"fill":"#e7e7ea"},{"t":"tube","pts":[[-1.3,-0.6,0.8],[0,-1.3,0.8],[1.3,-0.6,0.8]],"w":0.9,"smooth":true,"fill":"#121216"}]},{"id":"round_glasses","slot":"face","bounds":[-9.05,-4.15,9.05,4.15],"regions":false,"parts":[{"t":"torus","c":[4.9,0.0,0.7],"R":3.6,"r":0.55,"tilt":0.0,"fill":"#b07a2a"},{"t":"torus","c":[-4.9,0.0,0.7],"R":3.6,"r":0.55,"tilt":0.0,"fill":"#b07a2a"},{"t":"tube","pts":[[-1.3,-0.6,0.8],[0,-1.3,0.8],[1.3,-0.6,0.8]],"w":0.75,"smooth":true,"fill":"#b07a2a"}]},{"id":"monocle","slot":"face","bounds":[0.15,-4.65,9.62,9.82],"regions":false,"parts":[{"t":"torus","c":[4.8,0,0.8],"R":4,"r":0.65,"tilt":0.0,"fill":"#f2c14e"},{"t":"tube","pts":[[8.4,1.6,0.7],[9.4,5.4,0.5],[8.2,9.6,0.3]],"w":0.45,"smooth":true,"fill":"#f2c14e"}]},{"id":"eye_patch","slot":"face","bounds":[-14.4,-6.8,14.4,3.7],"regions":false,"parts":[{"t":"sphere","c":[-4.8,0.2,0.7],"r":[3.9,3.5,0.6],"fill":"#18181b"},{"t":"tube","pts":[[-14,2.6,-1],[-8.6,0.4,0.5],[-4.8,-1,1],[0,-3.4,0.6],[7,-5.6,0.3],[14,-6.4,-1]],"w":0.8,"smooth":true,"fill":"#18181b"}]},{"id":"star_glasses","slot":"face","bounds":[-9.67,-4.7,9.67,3.8],"regions":false,"parts":[{"t":"poly","pts":[[5.2,-4.7],[6.552,-1.861],[9.67,-1.452],[7.387,0.711],[7.963,3.802],[5.2,2.3],[2.437,3.802],[3.013,0.711],[0.73,-1.452],[3.848,-1.861]],"z":0.9,"d":0.9,"smooth":false,"fill":"#facc15"},{"t":"poly","pts":[[-3.848,-1.861],[-0.73,-1.452],[-3.013,0.711],[-2.437,3.802],[-5.2,2.3],[-7.963,3.802],[-7.387,0.711],[-9.67,-1.452],[-6.552,-1.861],[-5.2,-4.7]],"z":0.9,"d":0.9,"smooth":false,"fill":"#facc15"},{"t":"tube","pts":[[-1.3,-0.6,0.8],[0,-1.3,0.8],[1.3,-0.6,0.8]],"w":0.9,"smooth":true,"fill":"#facc15"}]},{"id":"heart_glasses","slot":"face","bounds":[-9.43,-2.77,9.43,5.06],"regions":false,"parts":[{"t":"poly","pts":[[5.1,-0.893],[5.148,-1.159],[5.454,-1.806],[6.149,-2.468],[7.169,-2.766],[8.266,-2.498],[9.112,-1.71],[9.429,-0.622],[9.112,0.53],[8.266,1.61],[7.169,2.596],[6.149,3.502],[5.454,4.292],[5.148,4.854],[5.1,5.06],[5.052,4.854],[4.746,4.292],[4.051,3.502],[3.031,2.596],[1.934,1.61],[1.088,0.53],[0.771,-0.622],[1.088,-1.71],[1.934,-2.498],[3.031,-2.766],[4.051,-2.468],[4.746,-1.806],[5.052,-1.159]],"z":0.9,"d":0.9,"smooth":true,"fill":"#ef4444"},{"t":"poly","pts":[[-5.052,-1.159],[-4.746,-1.806],[-4.051,-2.468],[-3.031,-2.766],[-1.934,-2.498],[-1.088,-1.71],[-0.771,-0.622],[-1.088,0.53],[-1.934,1.61],[-3.031,2.596],[-4.051,3.502],[-4.746,4.292],[-5.052,4.854],[-5.1,5.06],[-5.148,4.854],[-5.454,4.292],[-6.149,3.502],[-7.169,2.596],[-8.266,1.61],[-9.112,0.53],[-9.429,-0.622],[-9.112,-1.71],[-8.266,-2.498],[-7.169,-2.766],[-6.149,-2.468],[-5.454,-1.806],[-5.148,-1.159],[-5.1,-0.893]],"z":0.9,"d":0.9,"smooth":true,"fill":"#ef4444"},{"t":"tube","pts":[[-1.3,-0.6,0.8],[0,-1.3,0.8],[1.3,-0.6,0.8]],"w":0.9,"smooth":true,"fill":"#ef4444"}]},{"id":"cyber_visor","slot":"face","bounds":[-10.0,-2.9,10.4,2.9],"regions":false,"parts":[{"t":"box","c":[0.2,0,0.9],"s":[20.4,5.8,1.4],"round":2.7,"fill":"#1e293b"},{"t":"box","c":[0.2,0,1.7],"s":[15,1.1,0.3],"round":0.5,"fill":"#22d3ee","glow":true}]},{"id":"glasses_3d","slot":"face","bounds":[-9.7,-3.2,9.7,3.2],"regions":false,"parts":[{"t":"box","c":[0,0,0.6],"s":[19.4,6.4,0.9],"round":1,"fill":"#f8fafc"},{"t":"box","c":[-4.8,0,1.2],"s":[7,4.4,0.4],"round":0.6,"fill":"#ef4444"},{"t":"box","c":[4.8,0,1.2],"s":[7,4.4,0.4],"round":0.6,"fill":"#22d3ee"}]},{"id":"nerd_glasses","slot":"face","bounds":[-9.45,-3.65,9.45,3.75],"regions":false,"parts":[{"t":"tube","pts":[[1.2,-3.0,0.0],[8.8,-3.0,0.0],[8.8,3.1,0.0],[1.2,3.1,0.0],[1.2,-3.0,0.0]],"w":1.3,"smooth":false,"fill":"#18181b"},{"t":"tube","pts":[[-1.2,-3.0,0.0],[-8.8,-3.0,0.0],[-8.8,3.1,0.0],[-1.2,3.1,0.0],[-1.2,-3.0,0.0]],"w":1.3,"smooth":false,"fill":"#18181b"},{"t":"box","c":[0,-1,1.1],"s":[2.8,2.2,0.6],"round":0.3,"fill":"#f5f5f4"}]},{"id":"ski_goggles","slot":"face","bounds":[-16.5,-4.3,16.5,4.3],"regions":false,"parts":[{"t":"box","c":[0,0,0.4],"s":[21.4,8.6,1],"round":3.9,"fill":"#e5e7eb"},{"t":"box","c":[0,0,1.1],"s":[19.2,6.8,0.8],"round":3.2,"fill":"#fb923c"},{"t":"tube","pts":[[-6.4,-1.6,1.6],[-3.6,-2.6,1.6]],"w":0.8,"smooth":false,"fill":"#fff7ed"},{"t":"tube","pts":[[10.6,0.0,0.4],[15.2,0.6,-2]],"w":2.6,"smooth":false,"fill":"#1f2937"},{"t":"tube","pts":[[-10.6,0.0,0.4],[-15.2,0.6,-2]],"w":2.6,"smooth":false,"fill":"#1f2937"}]},{"id":"blush","slot":"face","bounds":[-10.2,3.1,10.2,6.1],"regions":false,"parts":[{"t":"sphere","c":[7.6,4.6,0.3],"r":[2.6,1.5,0.4],"fill":"#fb7185"},{"t":"sphere","c":[-7.6,4.6,0.3],"r":[2.6,1.5,0.4],"fill":"#fb7185"}]},{"id":"angry_brows","slot":"face","bounds":[-8.5,-7.1,8.5,-3.7],"regions":false,"parts":[{"t":"tube","pts":[[-7.8,-6.4,0.4],[-2.8,-4.4,0.4]],"w":1.4,"smooth":false,"fill":"#101014"},{"t":"tube","pts":[[7.8,-6.4,0.4],[2.8,-4.4,0.4]],"w":1.4,"smooth":false,"fill":"#101014"}]},{"id":"raised_brows","slot":"face","bounds":[-8.0,-7.4,8.0,-4.6],"regions":false,"parts":[{"t":"tube","pts":[[2.4,-5.2,0.4],[5.0,-6.8,0.4],[7.4,-5.8,0.4]],"w":1.2,"smooth":true,"fill":"#101014"},{"t":"tube","pts":[[-2.4,-5.2,0.4],[-5.0,-6.8,0.4],[-7.4,-5.8,0.4]],"w":1.2,"smooth":true,"fill":"#101014"}]},{"id":"cigar","slot":"mouth","bounds":[-0.9,-8.83,14.03,4.18],"regions":false,"parts":[{"t":"tube","pts":[[0.6,0,0.6],[10,2.4,1.2]],"w":3,"smooth":false,"fill":"#7a4a26"},{"t":"tube","pts":[[2.7,0.55,0.7],[3.6,0.8,0.8]],"w":3.2,"smooth":false,"fill":"#f2c14e"},{"t":"tube","pts":[[10.1,2.43,1.2],[11.1,2.7,1.3]],"w":2.95,"smooth":false,"fill":"#f97316","glow":true},{"t":"tube","pts":[[11.6,1.2,1.4],[13.2,-1.8,1.5],[11.8,-5.0,1.6],[13.6,-8.4,1.7]],"w":0.85,"smooth":true,"fill":"#d4d4d8"}]},{"id":"pipe","slot":"mouth","bounds":[-0.05,-12.62,10.43,2.6],"regions":false,"parts":[{"t":"tube","pts":[[0.6,0,0.6],[6.6,1.6,1.2]],"w":1.3,"smooth":false,"fill":"#3b2617"},{"t":"cyl","c":[8,0.4,1.2],"r":[1.9,2.3],"h":4.4,"dz":1.0,"fill":"#7a4a26"},{"t":"sphere","c":[8,-1.8,1.2],"r":[2.1,0.5,2.1],"fill":"#27272a"},{"t":"tube","pts":[[8,-2.6,1.4],[9.6,-5.6,1.5],[8.2,-8.8,1.6],[10,-12.2,1.7]],"w":0.85,"smooth":true,"fill":"#d4d4d8"}]},{"id":"lollipop","slot":"mouth","bounds":[-0.05,-0.45,12.2,7.2],"regions":false,"parts":[{"t":"tube","pts":[[0.4,0,0.6],[6.6,2.8,1.4]],"w":0.9,"smooth":false,"fill":"#fafafa"},{"t":"sphere","c":[8.8,3.8,1.6],"r":[3.4,3.4,0.9],"fill":"#f472b6"},{"t":"torus","c":[8.8,3.8,2.4],"R":1.8,"r":0.45,"tilt":0.0,"fill":"#fafafa"}]},{"id":"mustache","slot":"mouth","bounds":[-9.6,-4,9.6,0.6],"regions":false,"parts":[{"t":"poly","pts":[[0,-2.2],[2.4,-3.2],[5,-2.4],[7.6,-2],[9.6,-4],[9.6,-0.8],[6.8,0.6],[3.4,0.2],[0,0],[-3.4,0.2],[-6.8,0.6],[-9.6,-0.8],[-9.6,-4],[-7.6,-2],[-5,-2.4],[-2.4,-3.2]],"z":0.7,"d":1,"smooth":true,"fill":"#4a2f1d"}]},{"id":"beard","slot":"mouth","bounds":[-11.4,-3.6,11.4,11.4],"regions":false,"parts":[{"t":"poly","pts":[[0,0.6],[5.4,-0.4],[9.4,-3.6],[11.4,-2.4],[10.6,4.4],[6.6,9.6],[0,11.4],[-6.6,9.6],[-10.6,4.4],[-11.4,-2.4],[-9.4,-3.6],[-5.4,-0.4]],"z":0.6,"d":1.4,"smooth":true,"fill":"#7a4a26"},{"t":"poly","pts":[[0,-2],[3,-3],[6,-1.8],[6.6,0.2],[3,0],[0,0.4],[-3,0],[-6.6,0.2],[-6,-1.8],[-3,-3]],"z":1.6,"d":0.8,"smooth":true,"fill":"#4a2f1d"}]},{"id":"straw","slot":"mouth","bounds":[0.0,-4.66,15.06,0.4],"regions":false,"parts":[{"t":"tube","pts":[[0.4,0,0.6],[7.6,-2.4,1.2],[12.6,-3.6,1.4]],"w":0.8,"smooth":true,"fill":"#eab308"},{"t":"sphere","c":[13.4,-3.8,1.4],"r":[1.7,0.8,0.8],"fill":"#ca8a04","rot":-12}]},{"id":"rose","slot":"mouth","bounds":[-0.05,-0.45,14.1,5.3],"regions":false,"parts":[{"t":"tube","pts":[[0.4,0,0.6],[10,2.4,1.2]],"w":0.9,"smooth":false,"fill":"#16a34a"},{"t":"poly","pts":[[5.0,1.4],[6.972,1.227],[8.064,3.971],[5.506,3.286]],"z":1,"d":0.5,"smooth":true,"fill":"#22c55e"},{"t":"sphere","c":[11.4,2.6,1.4],"r":[2.7,2.7,2.7],"fill":"#e11d48"},{"t":"torus","c":[11.4,2.6,3.8],"R":1.3,"r":0.42,"tilt":0.0,"fill":"#9f1239"}]},{"id":"bubble_gum","slot":"mouth","bounds":[-4.2,-4.0,5.0,5.2],"regions":false,"parts":[{"t":"sphere","c":[0.4,0.6,3.2],"r":[4.6,4.6,3.6],"fill":"#f9a8d4"},{"t":"sphere","c":[-1,-1,6.4],"r":[1,1,0.5],"fill":"#f8fafc"}]},{"id":"smile","slot":"mouth","bounds":[-3.8,-1.4,3.8,2.0],"regions":false,"parts":[{"t":"tube","pts":[[-3.2,-0.8,0.4],[0,1.4,0.4],[3.2,-0.8,0.4]],"w":1.2,"smooth":true,"fill":"#101014"}]},{"id":"tongue","slot":"mouth","bounds":[-3.35,-0.95,3.35,3.7],"regions":false,"parts":[{"t":"poly","pts":[[-1.6,0],[1.6,0],[1.8,2.6],[0,3.7],[-1.8,2.6]],"z":0.3,"d":0.6,"smooth":true,"fill":"#fb7185"},{"t":"tube","pts":[[-2.8,-0.4,0.6],[0,0.5,0.6],[2.8,-0.4,0.6]],"w":1.1,"smooth":true,"fill":"#101014"}]},{"id":"bow_tie","slot":"neck","bounds":[-5.8,-3.2,5.8,3.2],"regions":false,"parts":[{"t":"poly","pts":[[0,-1.0],[5.0,-3.2],[5.8,0],[5.0,3.2],[0,1.0],[-5.0,3.2],[-5.8,0],[-5.0,-3.2]],"z":0.8,"d":1.2,"smooth":false,"fill":"#dc2626"},{"t":"sphere","c":[0,0,1.4],"r":[1.4,1.6,0.8],"fill":"#991b1b"}]},{"id":"necktie","slot":"neck","bounds":[-1.7,-0.8,1.7,1.9],"regions":true,"parts":[{"t":"poly","pts":[[-1.7,-0.8],[1.7,-0.8],[1.1,1.9],[-1.1,1.9]],"z":0.8,"d":1,"smooth":false,"fill":"#2563eb"},{"t":"region","pts":[[-1.1,1.8],[1.1,1.8],[2.5,9.2],[0,11.4],[-2.5,9.2]],"mode":"front","fill":"#2563eb"},{"t":"region","pts":[[-1.6,4.6],[1.6,4.6],[1.9,5.8],[-1.9,5.8]],"mode":"front","fill":"#facc15"}]},{"id":"scarf","slot":"neck","bounds":[3,1.2,7.3,9],"regions":true,"parts":[{"t":"region","pts":[[-60,-1.6],[60,-1.6],[60,2.6],[-60,2.6]],"mode":"wrap","fill":"#e0483e"},{"t":"poly","pts":[[3,1.2],[6.6,1.2],[7.2,8.8],[3.6,9]],"z":0.9,"d":1.2,"smooth":false,"fill":"#d0362d"},{"t":"tube","pts":[[3.4,6,1.6],[6.9,5.8,1.6]],"w":0.8,"smooth":false,"fill":"#fafafa"}]},{"id":"gold_chain","slot":"neck","bounds":[-9.05,-2.65,9.05,6.9],"regions":false,"parts":[{"t":"tube","pts":[[-8.6,-2.2,0.5],[-6.45,-0.056,0.5],[-4.3,1.475,0.5],[-2.15,2.394,0.5],[0.0,2.7,0.5],[2.15,2.394,0.5],[4.3,1.475,0.5],[6.45,-0.056,0.5],[8.6,-2.2,0.5]],"w":0.9,"smooth":true,"fill":"#f2c14e"},{"t":"sphere","c":[0,4.6,0.9],"r":[2.3,2.3,0.6],"fill":"#f2c14e"},{"t":"sphere","c":[0,4.6,1.4],"r":[1.2,1.2,0.4],"fill":"#c8922a"}]},{"id":"medal","slot":"neck","bounds":[-4.1,-3.3,4.1,7.0],"regions":false,"parts":[{"t":"tube","pts":[[-3.2,-2.4,0.5],[0,2.6,0.6]],"w":1.8,"smooth":false,"fill":"#2563eb"},{"t":"tube","pts":[[3.2,-2.4,0.5],[0,2.6,0.6]],"w":1.8,"smooth":false,"fill":"#dc2626"},{"t":"sphere","c":[0,4.4,1],"r":[2.6,2.6,0.6],"fill":"#f2c14e"},{"t":"poly","pts":[[0.0,2.8],[0.411,3.834],[1.522,3.906],[0.666,4.616],[0.94,5.694],[0.0,5.1],[-0.94,5.694],[-0.666,4.616],[-1.522,3.906],[-0.411,3.834]],"z":1.6,"d":0.3,"smooth":false,"fill":"#c8922a"}]},{"id":"bandana","slot":"neck","bounds":[-2.6,1.2,2.6,5.0],"regions":true,"parts":[{"t":"region","pts":[[-60,-1],[60,-1],[60,1.4],[-60,1.4]],"mode":"wrap","fill":"#dc2626"},{"t":"region","pts":[[-5.6,0],[5.6,0],[0,7]],"mode":"front","fill":"#dc2626"},{"t":"sphere","c":[-2,1.8,0.8],"r":[0.6,0.6,0.6],"fill":"#f8fafc"},{"t":"sphere","c":[2,1.8,0.8],"r":[0.6,0.6,0.6],"fill":"#f8fafc"},{"t":"sphere","c":[0,4.4,0.8],"r":[0.6,0.6,0.6],"fill":"#f8fafc"}]},{"id":"lei","slot":"neck","bounds":[-11.3,-3.7,11.3,4.9],"regions":false,"parts":[{"t":"sphere","c":[-9.6,-2.0,0.9],"r":[1.7,1.7,1],"fill":"#f472b6"},{"t":"sphere","c":[-7.2,0.275,0.9],"r":[1.7,1.7,1],"fill":"#facc15"},{"t":"sphere","c":[-4.8,1.9,0.9],"r":[1.7,1.7,1],"fill":"#fb923c"},{"t":"sphere","c":[-2.4,2.875,0.9],"r":[1.7,1.7,1],"fill":"#a78bfa"},{"t":"sphere","c":[0.0,3.2,0.9],"r":[1.7,1.7,1],"fill":"#f472b6"},{"t":"sphere","c":[2.4,2.875,0.9],"r":[1.7,1.7,1],"fill":"#facc15"},{"t":"sphere","c":[4.8,1.9,0.9],"r":[1.7,1.7,1],"fill":"#fb923c"},{"t":"sphere","c":[7.2,0.275,0.9],"r":[1.7,1.7,1],"fill":"#a78bfa"},{"t":"sphere","c":[9.6,-2.0,0.9],"r":[1.7,1.7,1],"fill":"#f472b6"}]},{"id":"pearls","slot":"neck","bounds":[-9.75,-3.15,9.75,3.35],"regions":false,"parts":[{"t":"sphere","c":[-8.8,-2.2,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[-7.333,-0.794,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[-5.867,0.356,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[-4.4,1.25,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[-2.933,1.889,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[-1.467,2.272,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[0.0,2.4,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[1.467,2.272,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[2.933,1.889,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[4.4,1.25,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[5.867,0.356,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[7.333,-0.794,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"},{"t":"sphere","c":[8.8,-2.2,0.7],"r":[0.95,0.95,0.95],"fill":"#f4f1ea"}]},{"id":"collar_bell","slot":"neck","bounds":[-2.0,0.8,2.0,4.8],"regions":true,"parts":[{"t":"region","pts":[[-60,-0.8],[60,-0.8],[60,1.2],[-60,1.2]],"mode":"wrap","fill":"#dc2626"},{"t":"sphere","c":[0,2.8,1.2],"r":[2,2,2],"fill":"#f2c14e"},{"t":"tube","pts":[[-0.9,3.6,3],[0.9,3.6,3]],"w":0.5,"smooth":false,"fill":"#6b4b12"}]},{"id":"suit","slot":"outfit","bounds":[0,0,0,0],"regions":true,"parts":[{"t":"region","pts":[[-60,-0.6],[60,-0.6],[60,60],[-60,60]],"mode":"wrap","fill":"#1f2a44"},{"t":"region","pts":[[-3.4,-0.7],[3.4,-0.7],[0,7.2]],"mode":"front","fill":"#f8fafc"},{"t":"region","pts":[[-0.9,-0.2],[0.9,-0.2],[1.5,5],[0,6.4],[-1.5,5]],"mode":"front","fill":"#dc2626"}]},{"id":"tuxedo","slot":"outfit","bounds":[-3.4,-1.8,3.4,5.7],"regions":true,"parts":[{"t":"region","pts":[[-60,-0.6],[60,-0.6],[60,60],[-60,60]],"mode":"wrap","fill":"#141418"},{"t":"region","pts":[[-4,-0.7],[4,-0.7],[0,8.2]],"mode":"front","fill":"#f8fafc"},{"t":"poly","pts":[[0,-0.5],[3,-1.8],[3.4,0.6],[3,1.9],[0,0.6],[-3,1.9],[-3.4,0.6],[-3,-1.8]],"z":0.9,"d":0.8,"smooth":false,"fill":"#141418"},{"t":"sphere","c":[0,3.4,0.7],"r":[0.5,0.5,0.5],"fill":"#101014"},{"t":"sphere","c":[0,5.2,0.7],"r":[0.5,0.5,0.5],"fill":"#101014"}]},{"id":"lab_coat","slot":"outfit","bounds":[4.8,1.6,5.6,4.8],"regions":true,"parts":[{"t":"region","pts":[[-60,-0.6],[60,-0.6],[60,60],[-60,60]],"mode":"wrap","fill":"#f1f2f4"},{"t":"region","pts":[[-3,-0.7],[3,-0.7],[0,5.8]],"mode":"front","fill":"#93c5fd"},{"t":"region","pts":[[4.2,3],[8,3],[8,6.4],[4.2,6.4]],"mode":"front","fill":"#dcdee3"},{"t":"tube","pts":[[5.2,2,0.6],[5.2,4.4,0.6]],"w":0.8,"smooth":false,"fill":"#2f6fe0"}]},{"id":"hoodie","slot":"outfit","bounds":[-2.2,-0.75,2.2,4.6],"regions":true,"parts":[{"t":"region","pts":[[-60,-0.6],[60,-0.6],[60,60],[-60,60]],"mode":"wrap","fill":"#6b7280"},{"t":"region","pts":[[-6,4],[6,4],[7.6,9.4],[-7.6,9.4]],"mode":"front","fill":"#4b5563"},{"t":"tube","pts":[[1.8,-0.4,0.5],[1.6,3.6,0.5]],"w":0.7,"smooth":false,"fill":"#f4f4f5"},{"t":"sphere","c":[1.6,4.0,0.7],"r":[0.6,0.6,0.6],"fill":"#f4f4f5"},{"t":"tube","pts":[[-1.8,-0.4,0.5],[-1.6,3.6,0.5]],"w":0.7,"smooth":false,"fill":"#f4f4f5"},{"t":"sphere","c":[-1.6,4.0,0.7],"r":[0.6,0.6,0.6],"fill":"#f4f4f5"}]},{"id":"jersey","slot":"outfit","bounds":[-2.09,5.8,2.09,9.78],"regions":true,"parts":[{"t":"region","pts":[[-60,-0.6],[60,-0.6],[60,60],[-60,60]],"mode":"wrap","fill":"#dc2626"},{"t":"region","pts":[[-60,3],[60,3],[60,4.8],[-60,4.8]],"mode":"front","fill":"#fafafa"},{"t":"region","pts":[[-2.6,-0.7],[2.6,-0.7],[0,2.6]],"mode":"front","fill":"#fafafa"},{"t":"poly","pts":[[0.0,5.8],[0.588,7.191],[2.092,7.32],[0.951,8.309],[1.293,9.78],[0.0,9.0],[-1.293,9.78],[-0.951,8.309],[-2.092,7.32],[-0.588,7.191]],"z":0.4,"d":0.4,"smooth":false,"fill":"#fafafa"}]},{"id":"overalls","slot":"outfit","bounds":[-5.75,0.65,5.75,2.15],"regions":true,"parts":[{"t":"region","pts":[[-60,3.4],[60,3.4],[60,60],[-60,60]],"mode":"wrap","fill":"#3b5b9a"},{"t":"region","pts":[[-5,0.8],[5,0.8],[5,3.6],[-5,3.6]],"mode":"front","fill":"#3b5b9a"},{"t":"region","pts":[[4.0,-1.2],[6.0,-1.2],[6.0,1.0],[4.0,1.0]],"mode":"front","fill":"#3b5b9a"},{"t":"sphere","c":[5.0,1.4,0.8],"r":[0.75,0.75,0.75],"fill":"#f2c14e"},{"t":"region","pts":[[-4.0,1.0],[-6.0,1.0],[-6.0,-1.2],[-4.0,-1.2]],"mode":"front","fill":"#3b5b9a"},{"t":"sphere","c":[-5.0,1.4,0.8],"r":[0.75,0.75,0.75],"fill":"#f2c14e"},{"t":"region","pts":[[-2.2,4.6],[2.2,4.6],[2.2,7],[-2.2,7]],"mode":"front","fill":"#2f4a80"}]},{"id":"hawaiian_shirt","slot":"outfit","bounds":[-7.55,1.2,7.35,9.19],"regions":true,"parts":[{"t":"region","pts":[[-60,-0.6],[60,-0.6],[60,60],[-60,60]],"mode":"wrap","fill":"#14b8a6"},{"t":"region","pts":[[-3.6,-0.7],[3.6,-0.7],[0,5]],"mode":"front","fill":"#f8fafc"},{"t":"sphere","c":[-5.6,2.1,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[-4.554,2.86,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[-4.953,4.09,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[-6.247,4.09,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[-6.646,2.86,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[-5.6,3.2,0.9],"r":[0.55,0.55,0.55],"fill":"#fde047"},{"t":"sphere","c":[5.4,3.5,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[6.446,4.26,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[6.047,5.49,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[4.753,5.49,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[4.354,4.26,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[5.4,4.6,0.9],"r":[0.55,0.55,0.55],"fill":"#fde047"},{"t":"sphere","c":[-1.2,6.3,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[-0.154,7.06,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[-0.553,8.29,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[-1.847,8.29,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[-2.246,7.06,0.6],"r":[0.9,0.9,0.4],"fill":"#f9a8d4"},{"t":"sphere","c":[-1.2,7.4,0.9],"r":[0.55,0.55,0.55],"fill":"#fde047"}]},{"id":"knight_armor","slot":"outfit","bounds":[-4.8,1.0,4.8,2.2],"regions":true,"parts":[{"t":"region","pts":[[-60,-0.6],[60,-0.6],[60,60],[-60,60]],"mode":"wrap","fill":"#9aa3ad"},{"t":"region","pts":[[-6,0.4],[6,0.4],[5,9],[0,11.4],[-5,9]],"mode":"front","fill":"#cbd5e1"},{"t":"region","pts":[[-0.6,0.4],[0.6,0.4],[0.6,11],[-0.6,11]],"mode":"front","fill":"#94a3b8"},{"t":"sphere","c":[-4.2,1.6,0.7],"r":[0.6,0.6,0.6],"fill":"#64748b"},{"t":"sphere","c":[4.2,1.6,0.7],"r":[0.6,0.6,0.6],"fill":"#64748b"}]},{"id":"hero_suit","slot":"outfit","bounds":[0,0,0,0],"regions":true,"parts":[{"t":"region","pts":[[-60,-0.6],[60,-0.6],[60,60],[-60,60]],"mode":"wrap","fill":"#2563eb"},{"t":"region","pts":[[0,0.6],[4.6,4.4],[0,8.8],[-4.6,4.4]],"mode":"front","fill":"#facc15"},{"t":"region","pts":[[0,2.4],[2.4,4.4],[0,6.6],[-2.4,4.4]],"mode":"front","fill":"#dc2626"}]},{"id":"angel_wings","slot":"back","bounds":[-26.0,-13.0,26.0,2.6],"regions":false,"parts":[{"t":"poly","pts":[[8.6,-2.0],[12.6,-8.0],[18.6,-12.0],[25.0,-13.0],[23.6,-8.4],[26.0,-6.2],[22.6,-3.2],[24.0,0.2],[18.6,1.2],[14.6,2.6]],"z":-1,"d":1.6,"smooth":true,"fill":"#f8fafc"},{"t":"poly","pts":[[-14.6,2.6],[-18.6,1.2],[-24.0,0.2],[-22.6,-3.2],[-26.0,-6.2],[-23.6,-8.4],[-25.0,-13.0],[-18.6,-12.0],[-12.6,-8.0],[-8.6,-2.0]],"z":-1,"d":1.6,"smooth":true,"fill":"#f8fafc"}]},{"id":"bat_wings","slot":"back","bounds":[-27.0,-13.0,27.0,1.2],"regions":false,"parts":[{"t":"poly","pts":[[8.6,-2.0],[12.6,-9.0],[18.6,-13.0],[27.0,-11.4],[24.2,-7.4],[26.0,-3.6],[22.0,-4.8],[21.0,-0.2],[17.0,-2.4],[13.6,1.2]],"z":-1,"d":1.4,"smooth":false,"fill":"#4c1d95"},{"t":"poly","pts":[[-13.6,1.2],[-17.0,-2.4],[-21.0,-0.2],[-22.0,-4.8],[-26.0,-3.6],[-24.2,-7.4],[-27.0,-11.4],[-18.6,-13.0],[-12.6,-9.0],[-8.6,-2.0]],"z":-1,"d":1.4,"smooth":false,"fill":"#4c1d95"}]},{"id":"cape","slot":"back","bounds":[-21,-11,21,21.8],"regions":false,"parts":[{"t":"poly","pts":[[-12,-11],[12,-11],[17.6,6],[21,21.4],[10,19.6],[0,21.8],[-10,19.6],[-21,21.4],[-17.6,6]],"z":-1.2,"d":1.2,"smooth":true,"fill":"#b91c1c"}]},{"id":"jetpack","slot":"back","bounds":[-13.4,-13.8,13.4,24.1],"regions":false,"parts":[{"t":"cyl","c":[9.6,1.0,-4],"r":[3.8,3.8],"h":24,"dz":1.0,"fill":"#9ca3af"},{"t":"dome","c":[9.6,-11.0,-4],"r":[3.8,2.8,3.8],"fill":"#b8c0c8"},{"t":"cyl","c":[9.6,13.8,-4],"r":[2.3,3],"h":2.6,"dz":1.0,"fill":"#52525b"},{"t":"cyl","c":[9.6,19.6,-4],"r":[0,2.7],"h":9,"dz":1.0,"fill":"#fb923c","glow":true},{"t":"cyl","c":[9.6,18.2,-3.4],"r":[0,1.5],"h":5,"dz":1.0,"fill":"#fde047","glow":true},{"t":"cyl","c":[-9.6,1.0,-4],"r":[3.8,3.8],"h":24,"dz":1.0,"fill":"#9ca3af"},{"t":"dome","c":[-9.6,-11.0,-4],"r":[3.8,2.8,3.8],"fill":"#b8c0c8"},{"t":"cyl","c":[-9.6,13.8,-4],"r":[2.3,3],"h":2.6,"dz":1.0,"fill":"#52525b"},{"t":"cyl","c":[-9.6,19.6,-4],"r":[0,2.7],"h":9,"dz":1.0,"fill":"#fb923c","glow":true},{"t":"cyl","c":[-9.6,18.2,-3.4],"r":[0,1.5],"h":5,"dz":1.0,"fill":"#fde047","glow":true}]},{"id":"butterfly_wings","slot":"back","bounds":[-23.2,-12.6,23.2,7.6],"regions":false,"parts":[{"t":"poly","pts":[[7.6,-1.0],[12.6,-9.4],[20.0,-12.6],[23.2,-7.4],[18.2,-1.8]],"z":-1,"d":1,"smooth":true,"fill":"#f59e0b"},{"t":"poly","pts":[[7.6,0.0],[17.0,1.4],[19.0,6.6],[12.6,7.6]],"z":-1.1,"d":1,"smooth":true,"fill":"#fb923c"},{"t":"sphere","c":[18.2,-7.6,-0.2],"r":[1.4,1.4,0.4],"fill":"#fff7ed"},{"t":"sphere","c":[15.6,4.0,-0.4],"r":[1,1,0.4],"fill":"#7c2d12"},{"t":"poly","pts":[[-18.2,-1.8],[-23.2,-7.4],[-20.0,-12.6],[-12.6,-9.4],[-7.6,-1.0]],"z":-1,"d":1,"smooth":true,"fill":"#f59e0b"},{"t":"poly","pts":[[-12.6,7.6],[-19.0,6.6],[-17.0,1.4],[-7.6,0.0]],"z":-1.1,"d":1,"smooth":true,"fill":"#fb923c"},{"t":"sphere","c":[-18.2,-7.6,-0.2],"r":[1.4,1.4,0.4],"fill":"#fff7ed"},{"t":"sphere","c":[-15.6,4.0,-0.4],"r":[1,1,0.4],"fill":"#7c2d12"}]},{"id":"devil_tail","slot":"back","bounds":[3.0,0.6,22.4,18.0],"regions":false,"parts":[{"t":"tube","pts":[[4,13,-1],[12,17,-1],[19.4,12.4,-1],[19,5.4,-1]],"w":2,"smooth":true,"fill":"#d42f2f"},{"t":"poly","pts":[[19,0.6],[22.4,6.2],[19,5],[15.6,6.2]],"z":-1,"d":1.2,"smooth":false,"fill":"#d42f2f"}]},{"id":"coffee","slot":"held","bounds":[-0.1,-11.4,6.5,3.0],"regions":false,"parts":[{"t":"cyl","c":[3.2,0,0],"r":[2.6,3.1],"h":6,"dz":1.0,"fill":"#fafaf9"},{"t":"cyl","c":[3.2,0.3,0],"r":[2.76,2.96],"h":2.6,"dz":1.0,"fill":"#a8692e"},{"t":"cyl","c":[3.2,-3.4,0],"r":[3.3,3.2],"h":1,"dz":1.0,"fill":"#e7e5e4"},{"t":"tube","pts":[[3,-4.6,0],[4.4,-6.8,0],[3,-9,0],[4.4,-11,0]],"w":0.8,"smooth":true,"fill":"#d4d4d8"}]},{"id":"wrench","slot":"held","bounds":[1.0,-8.81,10.25,4.46],"regions":false,"parts":[{"t":"tube","pts":[[2.0,3.464,0],[6.5,-4.33,0]],"w":2,"smooth":false,"fill":"#9ca3af"},{"t":"poly","pts":[[4.295,-4.911],[5.748,-8.228],[7.934,-8.814],[6.98,-6.362],[8.02,-5.762],[9.666,-7.814],[10.252,-5.628],[8.105,-2.711]],"z":0,"d":1.6,"smooth":false,"fill":"#9ca3af"}]},{"id":"magic_wand","slot":"held","bounds":[0.0,-12.5,12.9,3.6],"regions":false,"parts":[{"t":"tube","pts":[[0.6,3,0],[6.4,-5.4,0]],"w":1.2,"smooth":false,"fill":"#18181b"},{"t":"tube","pts":[[5.7,-4.4,0],[6.4,-5.4,0]],"w":1.25,"smooth":false,"fill":"#f8fafc"},{"t":"poly","pts":[[9.2,-10.7],[9.766,-9.166],[11.3,-8.6],[9.766,-8.034],[9.2,-6.5],[8.634,-8.034],[7.1,-8.6],[8.634,-9.166]],"z":0.4,"d":0.4,"smooth":false,"fill":"#f2c14e","glow":true},{"t":"poly","pts":[[11.6,-6.3],[11.954,-5.354],[12.9,-5.0],[11.954,-4.646],[11.6,-3.7],[11.246,-4.646],[10.3,-5.0],[11.246,-5.354]],"z":0.4,"d":0.4,"smooth":false,"fill":"#f2c14e","glow":true},{"t":"poly","pts":[[7.4,-12.5],[7.718,-11.718],[8.5,-11.4],[7.718,-11.082],[7.4,-10.3],[7.082,-11.082],[6.3,-11.4],[7.082,-11.718]],"z":0.4,"d":0.4,"smooth":false,"fill":"#f2c14e","glow":true}]},{"id":"sword","slot":"held","bounds":[-0.07,-13.31,8.47,6.99],"regions":false,"parts":[{"t":"poly","pts":[[2.74,0.642],[4.642,1.26],[8.474,-10.533],[8.326,-13.315],[6.572,-11.151]],"z":0,"d":0.8,"smooth":false,"fill":"#e5e7eb"},{"t":"box","c":[3.475,1.617,0],"s":[7,1.4,1.6],"round":0.6,"fill":"#f2c14e","rot":18.0},{"t":"tube","pts":[[3.197,2.473,0],[2.27,5.326,0]],"w":1.4,"smooth":false,"fill":"#8a5a32"},{"t":"sphere","c":[2.084,5.897,0],"r":[1.1,1.1,1.1],"fill":"#f2c14e","rot":18.0}]},{"id":"laser_sword","slot":"held","bounds":[1.5,-14.47,8.57,6.75],"regions":false,"parts":[{"t":"tube","pts":[[2.447,5.796,0],[3.534,1.739,0]],"w":1.9,"smooth":false,"fill":"#52525b"},{"t":"tube","pts":[[3.327,2.511,0],[3.172,3.091,0]],"w":2.1,"smooth":false,"fill":"#27272a"},{"t":"tube","pts":[[3.689,1.159,0],[7.623,-13.523,0]],"w":1.9,"smooth":false,"fill":"#22d3ee","glow":true},{"t":"tube","pts":[[3.689,1.159,0.3],[7.52,-13.137,0.3]],"w":0.8,"smooth":false,"fill":"#ecfeff","glow":true}]},{"id":"balloon","slot":"held","bounds":[-1.0,-22.4,8.2,2.23],"regions":false,"parts":[{"t":"tube","pts":[[1,2,0],[2.4,-3,0],[1.6,-7.6,0],[3.2,-11.4,0]],"w":0.45,"smooth":true,"fill":"#71717a"},{"t":"sphere","c":[3.4,-11.6,0],"r":[0.9,0.7,0.9],"fill":"#e0483e"},{"t":"sphere","c":[3.6,-17,0],"r":[4.6,5.4,4.6],"fill":"#e0483e"},{"t":"sphere","c":[2,-19,3.6],"r":[1,1.5,0.6],"fill":"#fecaca"}]},{"id":"flag","slot":"held","bounds":[0.0,-15.6,11.8,4.45],"regions":false,"parts":[{"t":"tube","pts":[[1,4,0],[1,-14,0]],"w":0.9,"smooth":false,"fill":"#a1a1aa"},{"t":"sphere","c":[1,-14.6,0],"r":[1,1,1],"fill":"#f2c14e"},{"t":"poly","pts":[[1.4,-13.6],[5,-14.6],[8.6,-13],[11.8,-14],[11.8,-7.4],[8.6,-6.4],[5,-8],[1.4,-7]],"z":0,"d":0.6,"smooth":true,"fill":"body"}]},{"id":"book","slot":"held","bounds":[0.9,-3.9,7.25,3.9],"regions":false,"parts":[{"t":"box","c":[4,0,0],"s":[6.2,7.8,2.4],"round":0.5,"fill":"#2563eb"},{"t":"box","c":[6.9,0,0],"s":[0.7,7,1.9],"round":0.1,"fill":"#fafaf9"},{"t":"box","c":[3.7,-1.8,1.25],"s":[3.4,0.7,0.1],"round":0.2,"fill":"#f2c14e"}]},{"id":"briefcase","slot":"held","bounds":[-0.5,-4.9,8.5,4.3],"regions":false,"parts":[{"t":"box","c":[4,1,0],"s":[9,6.6,2.6],"round":0.9,"fill":"#7a4a26"},{"t":"torus","c":[4,-2.6,0],"R":1.8,"r":0.5,"tilt":0.0,"fill":"#3b2617"},{"t":"box","c":[4,-1.2,1.35],"s":[1.6,1,0.3],"round":0.2,"fill":"#f2c14e"}]},{"id":"trophy","slot":"held","bounds":[-1.3,-7.2,9.3,3.0],"regions":false,"parts":[{"t":"cyl","c":[4,-4.4,0],"r":[1.6,3.8],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"torus","c":[0.8,-4.8,0],"R":1.6,"r":0.5,"tilt":0.0,"fill":"#f2c14e"},{"t":"torus","c":[7.2,-4.8,0],"R":1.6,"r":0.5,"tilt":0.0,"fill":"#f2c14e"},{"t":"cyl","c":[4,-0.4,0],"r":[0.8,0.8],"h":2.6,"dz":1.0,"fill":"#c8922a"},{"t":"box","c":[4,2,0],"s":[5.6,2,2.6],"round":0.4,"fill":"#5b3a1e"},{"t":"poly","pts":[[4.0,-5.7],[4.323,-4.845],[5.236,-4.802],[4.523,-4.23],[4.764,-3.348],[4.0,-3.85],[3.236,-3.348],[3.477,-4.23],[2.764,-4.802],[3.677,-4.845]],"z":2.1,"d":0.3,"smooth":false,"fill":"#fff7d6"}]},{"id":"rubber_duck","slot":"held","bounds":[-1.2,-6.0,8.4,3.0],"regions":false,"parts":[{"t":"sphere","c":[4.4,0,0],"r":[4,3,3.2],"fill":"#facc15"},{"t":"sphere","c":[2.6,-3.6,0],"r":[2.4,2.4,2.4],"fill":"#facc15"},{"t":"sphere","c":[0.2,-3.4,0.4],"r":[1.4,0.7,1],"fill":"#fb923c"},{"t":"sphere","c":[2,-4.2,2],"r":[0.5,0.5,0.5],"fill":"#101014"}]},{"id":"pizza","slot":"held","bounds":[-1.69,-7.83,9.2,4.8],"regions":false,"parts":[{"t":"poly","pts":[[-0.389,-4.111],[8.111,-6.389],[6.553,4.796]],"z":0,"d":1,"smooth":false,"fill":"#fcd34d"},{"t":"tube","pts":[[-0.686,-4.446,0],[8.201,-6.827,0]],"w":2,"smooth":false,"fill":"#b45309"},{"t":"sphere","c":[3.13,-2.57,0.6],"r":[1.1,1.1,0.3],"fill":"#dc2626","rot":-15.0},{"t":"sphere","c":[6.183,-2.766,0.6],"r":[1.1,1.1,0.3],"fill":"#dc2626","rot":-15.0},{"t":"sphere","c":[5.414,0.545,0.6],"r":[1,1,0.3],"fill":"#dc2626","rot":-15.0}]},{"id":"microphone","slot":"held","bounds":[1.85,-6.08,7.3,6.77],"regions":false,"parts":[{"t":"tube","pts":[[2.753,5.869,0],[4.208,-0.978,0]],"w":1.8,"smooth":false,"fill":"#27272a"},{"t":"cyl","c":[4.249,-1.174,0],"r":[1.4,1.8],"h":1,"dz":1.0,"fill":"#3f3f46","rot":12.0},{"t":"sphere","c":[4.748,-3.521,0],"r":[2.6,2.6,2.6],"fill":"#a1a1aa","rot":12.0}]},{"id":"ice_cream","slot":"held","bounds":[1.0,-9.4,7.0,5.9],"regions":false,"parts":[{"t":"cyl","c":[4,2.4,0],"r":[0,2.8],"h":7,"dz":1.0,"fill":"#d6a15c"},{"t":"sphere","c":[4,-2,0],"r":[3,3,3],"fill":"#f9a8d4"},{"t":"sphere","c":[4,-5.4,0],"r":[2.6,2.6,2.6],"fill":"#86efac"},{"t":"sphere","c":[4,-8.4,0.4],"r":[1,1,1],"fill":"#dc2626"}]}]}
+{"schema":2,"slots":["back","outfit","neck","mouth","face","head","held"],"slotDepth":{"back":-1,"outfit":1,"neck":1,"mouth":1,"face":1,"head":0,"held":0.4},"slotFlatShift":{"outfit":1.0,"neck":1.0},"frontDepthM":0.25,"shapes":{"circle":{"top":3.8,"bottom":36.2,"eyeY":17.2,"anchors":{"head":[20,5.2,1],"neck":[20,22.4,1.0],"held":[33.5,29,1.35],"back":[20,20,1],"outfit":[20,22.4,1.0],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"squircle":{"top":3.8,"bottom":36.2,"eyeY":17.2,"anchors":{"head":[20,4.4,1],"neck":[20,22.4,1.0],"held":[34,29,1.35],"back":[20,20,1],"outfit":[20,22.4,1.0],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"pill":{"top":8.48,"bottom":31.52,"eyeY":17.2,"anchors":{"head":[20,9.6,0.95],"neck":[20,22.2,0.85],"held":[35.5,26,1.282],"back":[20,20,0.95],"outfit":[20,22.2,0.85],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"triangle":{"top":5.5,"bottom":33.5,"eyeY":23,"anchors":{"head":[20,8.6,0.72],"neck":[20,28.0,0.8],"held":[32.5,31,1.215],"back":[20,22,0.9],"outfit":[20,28.0,0.8],"face":[20,23,0.9],"mouth":[20,29.12,1.035]}},"hexagon":{"top":3.5,"bottom":36.5,"eyeY":17.2,"anchors":{"head":[20,5.8,0.9],"neck":[20,22.4,0.95],"held":[33,29,1.282],"back":[20,20,0.95],"outfit":[20,22.4,0.95],"face":[20,17.2,1],"mouth":[20,24.0,1.15]}},"cloud":{"top":5.028,"bottom":32,"eyeY":23,"anchors":{"head":[19.2,6.6,0.95],"neck":[20,27.6,0.7],"held":[37,27.5,1.215],"back":[21,20,1],"outfit":[20,27.6,0.7],"face":[20,23,0.9],"mouth":[20,29.12,1.035]}},"drop":{"top":3,"bottom":40.5,"eyeY":25,"anchors":{"head":[20,9.6,0.72],"neck":[20,30.0,0.95],"held":[32.5,34,1.282],"back":[20,25,0.95],"outfit":[20,30.0,0.95],"face":[20,25,1],"mouth":[20,31.8,1.15]}}},"items":[{"id":"suit","slot":"outfit","scale":1,"bounds":[-1.55,-0.4,1.55,2.1],"regions":true,"parts":[{"t":"region","pts":[[-20,7.0],[-15,3.2],[-10,1.0],[-5,-0.2],[5,-0.2],[10,1.0],[15,3.2],[20,7.0],[60,60.0],[-60,60.0]],"mode":"wrap","fill":"#2c3a55"},{"t":"region","pts":[[-4.6,-0.4],[4.6,-0.4],[0,8.8]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[-4.4,-0.4],[-0.9,0.2],[-2.6,2.8]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[4.4,-0.4],[2.6,2.8],[0.9,0.2]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[-1.0,2.0],[1.0,2.0],[2.1,8.2],[0,10.4],[-2.1,8.2]],"mode":"front","fill":"#b3243b"},{"t":"region","pts":[[-1.1,3.9],[1.2,3.1],[1.32,3.75],[-1.2,4.55]],"mode":"front","fill":"#86182b"},{"t":"region","pts":[[-1.6,6.7],[1.75,5.6],[1.85,6.3],[-1.65,7.4]],"mode":"front","fill":"#86182b"},{"t":"poly","pts":[[-1.55,-0.4],[1.55,-0.4],[1.0,2.1],[-1.0,2.1]],"z":0.9,"d":0.9,"smooth":false,"fill":"#b3243b"},{"t":"region","pts":[[-4.6,-0.4],[0,8.8],[-1.3,10.4],[-6.9,3.4],[-8.2,0.2]],"mode":"front","fill":"#212b42"},{"t":"region","pts":[[8.2,0.2],[6.9,3.4],[1.3,10.4],[0,8.8],[4.6,-0.4]],"mode":"front","fill":"#212b42"},{"t":"region","pts":[[0.739,12.006],[0.306,12.439],[-0.306,12.439],[-0.739,12.006],[-0.739,11.394],[-0.306,10.961],[0.306,10.961],[0.739,11.394]],"mode":"front","fill":"#18202f"},{"t":"region","pts":[[0.739,14.706],[0.306,15.139],[-0.306,15.139],[-0.739,14.706],[-0.739,14.094],[-0.306,13.661],[0.306,13.661],[0.739,14.094]],"mode":"front","fill":"#18202f"},{"t":"region","pts":[[5.0,4.0],[8.8,4.0],[8.8,4.5],[5.0,4.5]],"mode":"front","fill":"#18202f"},{"t":"region","pts":[[5.4,4.0],[6.9,4.0],[6.0,2.3]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[6.4,4.0],[8.2,4.0],[7.6,2.5]],"mode":"front","fill":"#f4f6f8"}]},{"id":"tuxedo","slot":"outfit","scale":1,"bounds":[-4.1,-1.5,4.1,2.7],"regions":true,"parts":[{"t":"region","pts":[[-20,7.0],[-15,3.2],[-10,1.0],[-5,-0.2],[5,-0.2],[10,1.0],[15,3.2],[20,7.0],[60,60.0],[-60,60.0]],"mode":"wrap","fill":"#22232b"},{"t":"region","pts":[[-4.4,-0.4],[4.4,-0.4],[0,9.8]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[-1.85,3.0],[-1.5,3.0],[-1.5,7.6],[-1.85,7.6]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[1.5,3.0],[1.85,3.0],[1.85,7.6],[1.5,7.6]],"mode":"front","fill":"#dfe4ea"},{"t":"region","pts":[[0.462,3.791],[0.191,4.062],[-0.191,4.062],[-0.462,3.791],[-0.462,3.409],[-0.191,3.138],[0.191,3.138],[0.462,3.409]],"mode":"front","fill":"#101014"},{"t":"region","pts":[[0.462,5.991],[0.191,6.262],[-0.191,6.262],[-0.462,5.991],[-0.462,5.609],[-0.191,5.338],[0.191,5.338],[0.462,5.609]],"mode":"front","fill":"#101014"},{"t":"region","pts":[[0.416,8.172],[0.172,8.416],[-0.172,8.416],[-0.416,8.172],[-0.416,7.828],[-0.172,7.584],[0.172,7.584],[0.416,7.828]],"mode":"front","fill":"#101014"},{"t":"region","pts":[[-4.6,-0.4],[0,9.8],[-1.3,11.4],[-6.9,3.4],[-8.2,0.2]],"mode":"front","fill":"#3a3c48"},{"t":"region","pts":[[8.2,0.2],[6.9,3.4],[1.3,11.4],[0,9.8],[4.6,-0.4]],"mode":"front","fill":"#3a3c48"},{"t":"poly","pts":[[0,-0.1],[3.6,-1.5],[4.1,0.9],[3.6,2.7],[0,1.3],[-3.6,2.7],[-4.1,0.9],[-3.6,-1.5]],"z":0.9,"d":1.0,"smooth":false,"fill":"#22232b"},{"t":"sphere","c":[0,0.6,1.4],"r":[1.1,1.3,0.7],"fill":"#26272f"},{"t":"region","pts":[[5.0,4.0],[8.8,4.0],[8.8,4.5],[5.0,4.5]],"mode":"front","fill":"#0d0d10"},{"t":"region","pts":[[5.4,4.0],[6.9,4.0],[6.0,2.3]],"mode":"front","fill":"#f4f6f8"},{"t":"region","pts":[[6.4,4.0],[8.2,4.0],[7.6,2.5]],"mode":"front","fill":"#f4f6f8"}]},{"id":"lab_coat","slot":"outfit","scale":1,"bounds":[-1.4,-0.4,1.4,1.9],"regions":true,"parts":[{"t":"region","pts":[[-20,7.0],[-15,3.2],[-10,1.0],[-5,-0.2],[5,-0.2],[10,1.0],[15,3.2],[20,7.0],[60,60.0],[-60,60.0]],"mode":"wrap","fill":"#f2f4f7"},{"t":"region","pts":[[-4.0,-0.4],[4.0,-0.4],[0,7.6]],"mode":"front","fill":"#a9c8ef"},{"t":"region","pts":[[-0.9,1.8],[0.9,1.8],[1.8,6.6],[0,8.4],[-1.8,6.6]],"mode":"front","fill":"#0f766e"},{"t":"poly","pts":[[-1.4,-0.4],[1.4,-0.4],[0.9,1.9],[-0.9,1.9]],"z":0.9,"d":0.8,"smooth":false,"fill":"#0f766e"},{"t":"region","pts":[[-4.6,-0.4],[0,7.6],[-1.3,9.2],[-7.5,3.4],[-8.8,0.2]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[8.8,0.2],[7.5,3.4],[1.3,9.2],[0,7.6],[4.6,-0.4]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[-0.2,9.2],[0.25,9.2],[0.25,40],[-0.2,40]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[5.6,1.8],[6.3,1.8],[6.3,4.6],[5.6,4.6]],"mode":"front","fill":"#2f6fe0"},{"t":"region","pts":[[6.9,2.3],[7.6,2.3],[7.6,4.6],[6.9,4.6]],"mode":"front","fill":"#e0483e"},{"t":"region","pts":[[4.6,3.8],[8.8,3.8],[8.8,7.6],[4.6,7.6]],"mode":"front","fill":"#dde2e9"},{"t":"region","pts":[[-8.8,4.4],[-5.0,4.4],[-5.0,8.8],[-8.8,8.8]],"mode":"front","fill":"#ffffff"},{"t":"region","pts":[[-8.8,4.4],[-5.0,4.4],[-5.0,5.5],[-8.8,5.5]],"mode":"front","fill":"#0f766e"},{"t":"region","pts":[[-8.2,6.4],[-5.6,6.4],[-5.6,6.8],[-8.2,6.8]],"mode":"front","fill":"#c5ccd6"},{"t":"region","pts":[[-8.2,7.4],[-6.4,7.4],[-6.4,7.8],[-8.2,7.8]],"mode":"front","fill":"#c5ccd6"}]},{"id":"hoodie","slot":"outfit","scale":1,"bounds":[-2.55,1.85,8.47,7.7],"regions":true,"parts":[{"t":"rim","w":1.9,"fill":"#4a5160","maxY":4.0},{"t":"region","pts":[[-20,7.8],[-15,4.0],[-10,1.8],[-5,0.6],[5,0.6],[10,1.8],[15,4.0],[20,7.8],[60,60.8],[-60,60.8]],"mode":"wrap","fill":"#4a5160"},{"t":"region","pts":[[-5.2,0.8],[5.2,0.8],[4.0,2.7],[0,3.3],[-4.0,2.7]],"mode":"front","fill":"#3a404c"},{"t":"region","pts":[[-6.4,7.6],[6.4,7.6],[7.8,13.0],[-7.8,13.0]],"mode":"front","fill":"#3a404c"},{"t":"tube","pts":[[2.2,2.2,0.7],[1.9,6.6,0.7]],"w":0.7,"smooth":false,"fill":"#e5e7eb"},{"t":"sphere","c":[1.9,7.0,0.8],"r":[0.45,0.7,0.45],"fill":"#9ca3af"},{"t":"tube","pts":[[-2.2,2.2,0.7],[-1.9,6.6,0.7]],"w":0.7,"smooth":false,"fill":"#e5e7eb"},{"t":"sphere","c":[-1.9,7.0,0.8],"r":[0.45,0.7,0.45],"fill":"#9ca3af"},{"t":"tube","pts":[[5.2,2.6,0.5],[4.2,3.5,0.5],[5.2,4.4,0.5]],"w":0.55,"smooth":false,"fill":"#34d399"},{"t":"tube","pts":[[6.6,2.4,0.5],[5.8,4.6,0.5]],"w":0.55,"smooth":false,"fill":"#34d399"},{"t":"tube","pts":[[7.2,2.6,0.5],[8.2,3.5,0.5],[7.2,4.4,0.5]],"w":0.55,"smooth":false,"fill":"#34d399"}]},{"id":"crown","slot":"head","scale":1.15,"bounds":[-10.3,-12.23,10.3,0.7],"regions":false,"parts":[{"t":"dome","c":[0,-1.6,0],"r":[7.2,6.0,7.2],"fill":"#a61e36"},{"t":"cyl","c":[0,-1.8,0],"r":[8.0,8.5],"h":4.4,"dz":1.0,"fill":"#f2c14e"},{"t":"cyl","c":[0,0.25,0],"r":[8.15,8.15],"h":0.9,"dz":1.0,"fill":"#c8922a"},{"t":"cyl","c":[0,-3.75,0],"r":[8.55,8.55],"h":0.7,"dz":1.0,"fill":"#c8922a"},{"t":"cyl","c":[4.82,-6.5,6.634],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[4.82,-9.7,6.634],"r":[1.05,1.05,1.05],"fill":"#ffe08a"},{"t":"cyl","c":[7.799,-6.5,-2.534],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[7.799,-9.7,-2.534],"r":[1.05,1.05,1.05],"fill":"#ffe08a"},{"t":"cyl","c":[0.0,-6.5,-8.2],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[0.0,-9.7,-8.2],"r":[1.05,1.05,1.05],"fill":"#ffe08a"},{"t":"cyl","c":[-7.799,-6.5,-2.534],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[-7.799,-9.7,-2.534],"r":[1.05,1.05,1.05],"fill":"#ffe08a"},{"t":"cyl","c":[-4.82,-6.5,6.634],"r":[2.5,0],"h":5.6,"dz":1.0,"fill":"#f2c14e"},{"t":"sphere","c":[-4.82,-9.7,6.634],"r":[1.05,1.05,1.05],"fill":"#ffe08a"},{"t":"sphere","c":[0,-1.9,8.6],"r":[1.7,1.7,0.8],"fill":"#d7263d"},{"t":"sphere","c":[-6.317,-1.9,5.688],"r":[1.1,1.1,0.6],"fill":"#2f6fe0"},{"t":"sphere","c":[6.317,-1.9,5.688],"r":[1.1,1.1,0.6],"fill":"#2f6fe0"},{"t":"sphere","c":[0,-7.8,0],"r":[1.25,1.25,1.25],"fill":"#f2c14e"},{"t":"tube","pts":[[0,-8.8,0],[0,-11.8,0]],"w":0.85,"smooth":false,"fill":"#f2c14e"},{"t":"tube","pts":[[-1.1,-10.7,0],[1.1,-10.7,0]],"w":0.85,"smooth":false,"fill":"#f2c14e"},{"t":"box","c":[-3.2,-2.9,8.9],"s":[4.2,0.6,0.1],"round":0.3,"fill":"#ffe39b","only":"2d"}]},{"id":"top_hat","slot":"head","scale":1.12,"bounds":[-13.82,-13.84,13.63,2.37],"regions":false,"parts":[{"t":"cyl","c":[-0.052,0.303,0],"r":[12.4,12.4],"h":1.4,"dz":1.0,"fill":"#1e1f26","rot":-6.0},{"t":"sphere","c":[-12.227,1.18,0],"r":[1.6,1.2,4.2],"fill":"#1e1f26","only":"2d","rot":-6.0},{"t":"sphere","c":[12.039,-1.37,0],"r":[1.6,1.2,4.2],"fill":"#1e1f26","only":"2d","rot":-6.0},{"t":"cyl","c":[-0.794,-6.758,0],"r":[7.4,7.8],"h":12.6,"dz":1.0,"fill":"#272832","rot":-6.0},{"t":"cyl","c":[-0.261,-1.686,0],"r":[7.5,7.55],"h":2.8,"dz":1.0,"fill":"#b3243b","rot":-6.0},{"t":"box","c":[-5.275,-7.293,7.9],"s":[1.3,9.6,0.1],"round":0.6,"fill":"#3b3d4a","only":"2d","rot":-6.0}]},{"id":"cap","slot":"head","scale":1.15,"bounds":[-11.6,-7.8,11.6,4.3],"regions":false,"parts":[{"t":"dome","c":[0,1.8,0],"r":[9.4,8.4,9.4],"fill":"#2f6fe0"},{"t":"tube","pts":[[0,-6.2,0],[0,1.4,0]],"w":0.45,"smooth":false,"fill":"#2556b8","only":"2d"},{"t":"tube","pts":[[-4.8,-5.6,0],[-6.2,1.6,0]],"w":0.45,"smooth":true,"fill":"#2556b8","only":"2d"},{"t":"tube","pts":[[4.8,-5.6,0],[6.2,1.6,0]],"w":0.45,"smooth":true,"fill":"#2556b8","only":"2d"},{"t":"sphere","c":[0,-6.6,0],"r":[1.2,1.2,1.2],"fill":"#2556b8"},{"t":"poly","pts":[[0.0,-3.4],[0.529,-2.128],[1.902,-2.018],[0.856,-1.122],[1.176,0.218],[0.0,-0.5],[-1.176,0.218],[-0.856,-1.122],[-1.902,-2.018],[-0.529,-2.128]],"z":8.7,"d":0.4,"smooth":false,"fill":"#ffffff"},{"t":"sphere","c":[0,2.4,7.6],"r":[11.6,1.9,7.4],"fill":"#1f4aa0"},{"t":"box","c":[0,1.6,8.9],"s":[14,0.5,0.1],"round":0.25,"fill":"#3a6fd0","only":"2d"}]},{"id":"headphones","slot":"head","scale":1,"bounds":[-15.7,-9.8,15.7,12.6],"regions":false,"parts":[{"t":"tube","pts":[[-12.8,5.6,0],[-12.0,-1.8,0],[-6.8,-7.2,0],[0,-8.6,0],[6.8,-7.2,0],[12.0,-1.8,0],[12.8,5.6,0]],"w":2.4,"smooth":true,"fill":"#2b2d34"},{"t":"tube","pts":[[-5.4,-6.4,0.9],[0,-7.6,0.9],[5.4,-6.4,0.9]],"w":1.6,"smooth":true,"fill":"#454956"},{"t":"sphere","c":[11.4,7.4,0],"r":[1.4,4.6,4.2],"fill":"#f97316"},{"t":"sphere","c":[13.1,7.4,0],"r":[2.6,5.2,4.8],"fill":"#2b2d34"},{"t":"box","c":[14.0,7.4,0],"s":[1.2,4.4,3.2],"round":0.5,"fill":"#3d404a"},{"t":"sphere","c":[-11.4,7.4,0],"r":[1.4,4.6,4.2],"fill":"#f97316"},{"t":"sphere","c":[-13.1,7.4,0],"r":[2.6,5.2,4.8],"fill":"#2b2d34"},{"t":"box","c":[-14.0,7.4,0],"s":[1.2,4.4,3.2],"round":0.5,"fill":"#3d404a"}]},{"id":"sunglasses","slot":"face","scale":1,"bounds":[-11.05,-3.35,11.05,2.9],"regions":false,"parts":[{"t":"poly","pts":[[-8.6,-2.7],[-1.4,-2.7],[-1.6,1.2],[-3.0,2.9],[-7.0,2.9],[-8.4,1.2]],"z":0.9,"d":1.0,"smooth":false,"fill":"#14151a"},{"t":"poly","pts":[[8.4,1.2],[7.0,2.9],[3.0,2.9],[1.6,1.2],[1.4,-2.7],[8.6,-2.7]],"z":0.9,"d":1.0,"smooth":false,"fill":"#14151a"},{"t":"tube","pts":[[-9.2,-2.7,1.2],[9.2,-2.7,1.2]],"w":1.3,"smooth":false,"fill":"#14151a"},{"t":"tube","pts":[[-1.5,-1.4,1.1],[0,-2.0,1.1],[1.5,-1.4,1.1]],"w":0.9,"smooth":true,"fill":"#14151a"},{"t":"tube","pts":[[-9.0,-2.4,0.8],[-10.6,-2.2,0]],"w":0.9,"smooth":false,"fill":"#14151a"},{"t":"tube","pts":[[9.0,-2.4,0.8],[10.6,-2.2,0]],"w":0.9,"smooth":false,"fill":"#14151a"},{"t":"tube","pts":[[-7.0,-1.4,1.6],[-5.6,0.9,1.6]],"w":0.7,"smooth":false,"fill":"#5b5f6e","only":"2d"},{"t":"tube","pts":[[-5.4,-1.6,1.6],[-4.8,-0.6,1.6]],"w":0.5,"smooth":false,"fill":"#5b5f6e","only":"2d"},{"t":"tube","pts":[[2.2,-1.4,1.6],[3.6,0.9,1.6]],"w":0.7,"smooth":false,"fill":"#5b5f6e","only":"2d"}]},{"id":"cigar","slot":"mouth","scale":1,"bounds":[-1.02,-8.0,14.88,3.88],"regions":false,"parts":[{"t":"tube","pts":[[0.4,0,0.8],[9.6,2.2,1.4]],"w":2.8,"smooth":false,"fill":"#7b4a28"},{"t":"tube","pts":[[0.4,0,0.82],[1.5,0.27,0.86]],"w":2.85,"smooth":false,"fill":"#5a3519"},{"t":"tube","pts":[[2.6,0.52,0.9],[3.8,0.82,0.95]],"w":3.0,"smooth":false,"fill":"#f2c14e"},{"t":"tube","pts":[[3.0,0.62,0.92],[3.4,0.72,0.94]],"w":3.05,"smooth":false,"fill":"#b3243b"},{"t":"tube","pts":[[9.6,2.2,1.4],[10.9,2.5,1.45]],"w":2.75,"smooth":false,"fill":"#a3a3a3"},{"t":"tube","pts":[[10.9,2.5,1.45],[11.3,2.6,1.47]],"w":2.55,"smooth":false,"fill":"#ff6a1a","glow":true},{"t":"tube","pts":[[11.8,1.3,1.5],[13.4,-1.4,1.6],[11.9,-4.4,1.7],[13.8,-7.6,1.8]],"w":0.8,"smooth":true,"fill":"#d6d8de"},{"t":"tube","pts":[[12.8,-0.6,1.5],[14.6,-2.4,1.6],[14.0,-4.8,1.7]],"w":0.55,"smooth":true,"fill":"#d6d8de"}]}]}
diff --git a/jarvis/ui/web/frontend/src/components/society/companion/accessories.test.tsx b/jarvis/ui/web/frontend/src/components/society/companion/accessories.test.tsx
index c13fca7343..d0b03b2e54 100644
--- a/jarvis/ui/web/frontend/src/components/society/companion/accessories.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/companion/accessories.test.tsx
@@ -5,7 +5,7 @@ import de from "@/i18n/locales/society/de.json";
import es from "@/i18n/locales/society/es.json";
import { AgentSymbol } from "../AgentSymbol";
import {
- ACCESSORY_CATALOG, ACCESSORY_IDS_BY_SLOT, ACCESSORY_ITEMS, ACCESSORY_SLOTS, randomAccessories, resolveFill,
+ ACCESSORY_CATALOG, ACCESSORY_IDS_BY_SLOT, ACCESSORY_ITEMS, ACCESSORY_SLOTS, OFFERED_SLOTS, randomAccessories, resolveFill,
symbolViewBox, wornAccessories,
} from "./accessories";
import { COMPANION_SHAPES, companionSchema, resolveCompanion } from "./appearance";
@@ -26,7 +26,9 @@ describe("agent symbol accessories", () => {
for (const shape of COMPANION_SHAPES) {
for (const slot of ACCESSORY_SLOTS) expect(ACCESSORY_CATALOG.shapes[shape].anchors[slot]).toHaveLength(3);
}
- for (const slot of ACCESSORY_SLOTS) expect(ACCESSORY_IDS_BY_SLOT[slot].length).toBeGreaterThan(4);
+ // A small, finished set: every offered slot has items, every item has a home slot.
+ expect(ACCESSORY_ITEMS).toHaveLength(10);
+ expect(OFFERED_SLOTS).toEqual(["outfit", "mouth", "face", "head"]);
});
it("keeps a bare symbol at its original frame and grows only for worn items", () => {
@@ -50,6 +52,13 @@ describe("agent symbol accessories", () => {
expect(container.querySelector(`g[mask="url(#${mask!.id})"] [data-accessory="suit"]`)).not.toBeNull();
});
+ it("frames only the head with the hoodie's hood and keeps 2D-only shading out of 3D", () => {
+ const { container } = render(<AgentSymbol shape="circle" color="#7ab6ef" size={40} accessories={{ outfit: "hoodie" }} />);
+ expect(container.querySelector('[data-accessory-rim="hoodie"] clipPath rect')).not.toBeNull();
+ const hat = ACCESSORY_ITEMS.find(item => item.id === "top_hat")!;
+ expect(hat.parts.some(part => part.only === "2d")).toBe(true);
+ });
+
it("stores accessories with the companion and recovers older looks", () => {
expect(companionSchema.safeParse({ shape: "drop", color: "#112233", accessories: { held: "coffee" } }).success).toBe(true);
expect(companionSchema.safeParse({ shape: "drop", color: "#112233", accessories: { tail: "coffee" } }).success).toBe(false);
diff --git a/jarvis/ui/web/frontend/src/components/society/companion/accessories.ts b/jarvis/ui/web/frontend/src/components/society/companion/accessories.ts
index adad11b7a2..ac3866f8e6 100644
--- a/jarvis/ui/web/frontend/src/components/society/companion/accessories.ts
+++ b/jarvis/ui/web/frontend/src/components/society/companion/accessories.ts
@@ -17,7 +17,8 @@ export type AccessoryChoice = Partial<Record<AccessorySlot, string>>;
type Vec2 = [number, number];
type Vec3 = [number, number, number];
-interface PartBase { fill: string; glow?: boolean; rot?: number }
+/** "2d" parts are flat-only shading; "3d" parts exist only as meshes. */
+interface PartBase { fill: string; glow?: boolean; rot?: number; only?: "2d" | "3d" }
export type AccessoryPart = PartBase & (
| { t: "sphere" | "dome"; c: Vec3; r: Vec3 }
| { t: "box"; c: Vec3; s: Vec3; round: number }
@@ -26,10 +27,14 @@ export type AccessoryPart = PartBase & (
| { t: "poly"; pts: Vec2[]; z: number; d: number; smooth: boolean }
| { t: "tube"; pts: Vec3[]; w: number; smooth: boolean }
| { t: "region"; pts: Vec2[]; mode: "wrap" | "front" }
+ /** The body silhouette grown by w symbol units, behind the body (a hood). */
+ | { t: "rim"; w: number; maxY?: number }
);
export interface AccessoryItem {
id: string;
slot: AccessorySlot;
+ /** Item size on top of the slot anchor's scale. */
+ scale?: number;
/** Front-projection bounds around the anchor, before the shape's scale. */
bounds: [number, number, number, number];
/** True when some parts are patches of the body surface (clothing). */
@@ -43,6 +48,8 @@ interface Catalog {
schema: number;
slots: AccessorySlot[];
slotDepth: Record<AccessorySlot, number>;
+ /** Flat-only x shift that recentres clothing under the tilted flat face. */
+ slotFlatShift: Partial<Record<AccessorySlot, number>>;
frontDepthM: number;
shapes: Record<SymbolShape, AccessoryShape>;
items: AccessoryItem[];
@@ -54,6 +61,8 @@ const BY_ID = new Map(ACCESSORY_ITEMS.map(item => [item.id, item]));
export const ACCESSORY_IDS_BY_SLOT: Record<AccessorySlot, string[]> = Object.fromEntries(
ACCESSORY_SLOTS.map(slot => [slot, ACCESSORY_ITEMS.filter(item => item.slot === slot).map(item => item.id)]),
) as Record<AccessorySlot, string[]>;
+/** Slots that currently offer at least one item. */
+export const OFFERED_SLOTS: AccessorySlot[] = ACCESSORY_SLOTS.filter(slot => ACCESSORY_IDS_BY_SLOT[slot].length > 0);
/** Slots whose parts follow the tilted face of the flat symbol. */
export const FACE_SLOTS: ReadonlySet<AccessorySlot> = new Set(["face", "mouth"]);
@@ -111,7 +120,7 @@ export function smoothPath(points: readonly Vec2[], closed: boolean): string {
export function partDepth(part: AccessoryPart): number {
if (part.t === "poly") return part.z;
if (part.t === "tube") return part.pts.reduce((sum, p) => sum + p[2], 0) / part.pts.length;
- if (part.t === "region") return -Infinity;
+ if (part.t === "region" || part.t === "rim") return -Infinity;
return part.c[2];
}
@@ -121,7 +130,8 @@ export function symbolViewBox(shape: SymbolShape, worn: readonly AccessoryItem[]
const anchors = ACCESSORY_CATALOG.shapes[shape].anchors;
let x0 = 0, y0 = 0, x1 = 40, y1 = 44;
for (const item of worn) {
- const [ax, ay, k] = anchors[item.slot];
+ const [ax, ay, anchorK] = anchors[item.slot];
+ const k = anchorK * (item.scale ?? 1);
const [bx0, by0, bx1, by1] = item.bounds;
if (bx0 === bx1 && by0 === by1) continue;
// The face tilt moves points by at most ~2 units; pad instead of rotating.
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/de.json b/jarvis/ui/web/frontend/src/i18n/locales/society/de.json
index 7a508ec8d5..97b93242ad 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/society/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/de.json
@@ -824,90 +824,16 @@
"held": "Gegenstände"
},
"items": {
+ "suit": "Anzug & Krawatte",
+ "tuxedo": "Smoking",
+ "lab_coat": "Laborkittel",
+ "hoodie": "Coder-Hoodie",
"crown": "Krone",
"top_hat": "Zylinder",
- "party_hat": "Partyhut",
"cap": "Kappe",
- "beanie": "Mütze",
- "cowboy_hat": "Cowboyhut",
- "wizard_hat": "Zauberhut",
- "halo": "Heiligenschein",
- "viking_helmet": "Wikingerhelm",
- "chef_hat": "Kochmütze",
- "grad_cap": "Doktorhut",
"headphones": "Kopfhörer",
- "bunny_ears": "Hasenohren",
- "cat_ears": "Katzenohren",
- "devil_horns": "Teufelshörner",
- "flower": "Blume",
- "antennae": "Antennen",
- "propeller_cap": "Propellermütze",
- "santa_hat": "Weihnachtsmütze",
- "bow": "Schleife",
- "sprout": "Keimling",
- "pirate_hat": "Piratenhut",
- "sweatband": "Stirnband",
"sunglasses": "Sonnenbrille",
- "round_glasses": "Runde Brille",
- "monocle": "Monokel",
- "eye_patch": "Augenklappe",
- "star_glasses": "Sternenbrille",
- "heart_glasses": "Herzbrille",
- "cyber_visor": "Cyber-Visier",
- "glasses_3d": "3D-Brille",
- "nerd_glasses": "Nerdbrille",
- "ski_goggles": "Skibrille",
- "blush": "Rote Wangen",
- "angry_brows": "Böse Augenbrauen",
- "raised_brows": "Hochgezogene Augenbrauen",
- "cigar": "Zigarre",
- "pipe": "Pfeife",
- "lollipop": "Lutscher",
- "mustache": "Schnurrbart",
- "beard": "Bart",
- "straw": "Strohhalm",
- "rose": "Rose",
- "bubble_gum": "Kaugummiblase",
- "smile": "Lächeln",
- "tongue": "Zunge raus",
- "bow_tie": "Fliege",
- "necktie": "Krawatte",
- "scarf": "Schal",
- "gold_chain": "Goldkette",
- "medal": "Medaille",
- "bandana": "Halstuch",
- "lei": "Blumenkette",
- "pearls": "Perlenkette",
- "collar_bell": "Glöckchenhalsband",
- "suit": "Anzug",
- "tuxedo": "Smoking",
- "lab_coat": "Laborkittel",
- "hoodie": "Hoodie",
- "jersey": "Trikot",
- "overalls": "Latzhose",
- "hawaiian_shirt": "Hawaiihemd",
- "knight_armor": "Ritterrüstung",
- "hero_suit": "Heldenanzug",
- "angel_wings": "Engelsflügel",
- "bat_wings": "Fledermausflügel",
- "cape": "Umhang",
- "jetpack": "Jetpack",
- "butterfly_wings": "Schmetterlingsflügel",
- "devil_tail": "Teufelsschwanz",
- "coffee": "Kaffee",
- "wrench": "Schraubenschlüssel",
- "magic_wand": "Zauberstab",
- "sword": "Schwert",
- "laser_sword": "Laserschwert",
- "balloon": "Luftballon",
- "flag": "Fahne",
- "book": "Buch",
- "briefcase": "Aktenkoffer",
- "trophy": "Pokal",
- "rubber_duck": "Quietscheente",
- "pizza": "Pizzastück",
- "microphone": "Mikrofon",
- "ice_cream": "Eis"
+ "cigar": "Zigarre"
}
},
"office": {
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/en.json b/jarvis/ui/web/frontend/src/i18n/locales/society/en.json
index c972141ebb..1cde54c0e1 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/society/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/en.json
@@ -824,90 +824,16 @@
"held": "Props"
},
"items": {
+ "suit": "Suit & tie",
+ "tuxedo": "Tuxedo",
+ "lab_coat": "Lab coat",
+ "hoodie": "Coder hoodie",
"crown": "Crown",
"top_hat": "Top hat",
- "party_hat": "Party hat",
"cap": "Cap",
- "beanie": "Beanie",
- "cowboy_hat": "Cowboy hat",
- "wizard_hat": "Wizard hat",
- "halo": "Halo",
- "viking_helmet": "Viking helmet",
- "chef_hat": "Chef's hat",
- "grad_cap": "Graduation cap",
"headphones": "Headphones",
- "bunny_ears": "Bunny ears",
- "cat_ears": "Cat ears",
- "devil_horns": "Devil horns",
- "flower": "Flower",
- "antennae": "Antennae",
- "propeller_cap": "Propeller cap",
- "santa_hat": "Santa hat",
- "bow": "Bow",
- "sprout": "Sprout",
- "pirate_hat": "Pirate hat",
- "sweatband": "Sweatband",
"sunglasses": "Sunglasses",
- "round_glasses": "Round glasses",
- "monocle": "Monocle",
- "eye_patch": "Eye patch",
- "star_glasses": "Star glasses",
- "heart_glasses": "Heart glasses",
- "cyber_visor": "Cyber visor",
- "glasses_3d": "3D glasses",
- "nerd_glasses": "Nerd glasses",
- "ski_goggles": "Ski goggles",
- "blush": "Rosy cheeks",
- "angry_brows": "Angry brows",
- "raised_brows": "Raised brows",
- "cigar": "Cigar",
- "pipe": "Pipe",
- "lollipop": "Lollipop",
- "mustache": "Moustache",
- "beard": "Beard",
- "straw": "Straw",
- "rose": "Rose",
- "bubble_gum": "Bubble gum",
- "smile": "Smile",
- "tongue": "Tongue out",
- "bow_tie": "Bow tie",
- "necktie": "Tie",
- "scarf": "Scarf",
- "gold_chain": "Gold chain",
- "medal": "Medal",
- "bandana": "Bandana",
- "lei": "Flower garland",
- "pearls": "Pearl necklace",
- "collar_bell": "Bell collar",
- "suit": "Suit",
- "tuxedo": "Tuxedo",
- "lab_coat": "Lab coat",
- "hoodie": "Hoodie",
- "jersey": "Sports jersey",
- "overalls": "Overalls",
- "hawaiian_shirt": "Hawaiian shirt",
- "knight_armor": "Knight armour",
- "hero_suit": "Hero suit",
- "angel_wings": "Angel wings",
- "bat_wings": "Bat wings",
- "cape": "Cape",
- "jetpack": "Jetpack",
- "butterfly_wings": "Butterfly wings",
- "devil_tail": "Devil tail",
- "coffee": "Coffee",
- "wrench": "Wrench",
- "magic_wand": "Magic wand",
- "sword": "Sword",
- "laser_sword": "Laser sword",
- "balloon": "Balloon",
- "flag": "Flag",
- "book": "Book",
- "briefcase": "Briefcase",
- "trophy": "Trophy",
- "rubber_duck": "Rubber duck",
- "pizza": "Pizza slice",
- "microphone": "Microphone",
- "ice_cream": "Ice cream"
+ "cigar": "Cigar"
}
},
"office": {
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/es.json b/jarvis/ui/web/frontend/src/i18n/locales/society/es.json
index d5fd3d1896..898497cfb7 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/society/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/es.json
@@ -824,90 +824,16 @@
"held": "Objetos"
},
"items": {
+ "suit": "Traje y corbata",
+ "tuxedo": "Esmoquin",
+ "lab_coat": "Bata de laboratorio",
+ "hoodie": "Sudadera de programador",
"crown": "Corona",
"top_hat": "Chistera",
- "party_hat": "Gorro de fiesta",
"cap": "Gorra",
- "beanie": "Gorro de lana",
- "cowboy_hat": "Sombrero vaquero",
- "wizard_hat": "Sombrero de mago",
- "halo": "Aureola",
- "viking_helmet": "Casco vikingo",
- "chef_hat": "Gorro de chef",
- "grad_cap": "Birrete",
"headphones": "Auriculares",
- "bunny_ears": "Orejas de conejo",
- "cat_ears": "Orejas de gato",
- "devil_horns": "Cuernos de diablo",
- "flower": "Flor",
- "antennae": "Antenas",
- "propeller_cap": "Gorra con hélice",
- "santa_hat": "Gorro de Papá Noel",
- "bow": "Lazo",
- "sprout": "Brote",
- "pirate_hat": "Sombrero pirata",
- "sweatband": "Cinta para el sudor",
"sunglasses": "Gafas de sol",
- "round_glasses": "Gafas redondas",
- "monocle": "Monóculo",
- "eye_patch": "Parche",
- "star_glasses": "Gafas de estrella",
- "heart_glasses": "Gafas de corazón",
- "cyber_visor": "Visor cibernético",
- "glasses_3d": "Gafas 3D",
- "nerd_glasses": "Gafas de empollón",
- "ski_goggles": "Gafas de esquí",
- "blush": "Mejillas sonrojadas",
- "angry_brows": "Cejas enfadadas",
- "raised_brows": "Cejas levantadas",
- "cigar": "Puro",
- "pipe": "Pipa",
- "lollipop": "Piruleta",
- "mustache": "Bigote",
- "beard": "Barba",
- "straw": "Paja",
- "rose": "Rosa",
- "bubble_gum": "Chicle",
- "smile": "Sonrisa",
- "tongue": "Lengua fuera",
- "bow_tie": "Pajarita",
- "necktie": "Corbata",
- "scarf": "Bufanda",
- "gold_chain": "Cadena de oro",
- "medal": "Medalla",
- "bandana": "Pañuelo",
- "lei": "Collar de flores",
- "pearls": "Collar de perlas",
- "collar_bell": "Collar con cascabel",
- "suit": "Traje",
- "tuxedo": "Esmoquin",
- "lab_coat": "Bata de laboratorio",
- "hoodie": "Sudadera",
- "jersey": "Camiseta deportiva",
- "overalls": "Peto",
- "hawaiian_shirt": "Camisa hawaiana",
- "knight_armor": "Armadura",
- "hero_suit": "Traje de héroe",
- "angel_wings": "Alas de ángel",
- "bat_wings": "Alas de murciélago",
- "cape": "Capa",
- "jetpack": "Mochila cohete",
- "butterfly_wings": "Alas de mariposa",
- "devil_tail": "Cola de diablo",
- "coffee": "Café",
- "wrench": "Llave inglesa",
- "magic_wand": "Varita mágica",
- "sword": "Espada",
- "laser_sword": "Espada láser",
- "balloon": "Globo",
- "flag": "Bandera",
- "book": "Libro",
- "briefcase": "Maletín",
- "trophy": "Trofeo",
- "rubber_duck": "Patito de goma",
- "pizza": "Porción de pizza",
- "microphone": "Micrófono",
- "ice_cream": "Helado"
+ "cigar": "Puro"
}
},
"office": {
diff --git a/scripts/art/build_companion_accessories.py b/scripts/art/build_companion_accessories.py
index 612ab03bd3..811ab7b0c0 100644
--- a/scripts/art/build_companion_accessories.py
+++ b/scripts/art/build_companion_accessories.py
@@ -353,6 +353,47 @@ def assemble(name, pieces):
return obj
+def rim_piece(part, meta, anchor, outline):
+ """A hood: a band around the silhouette, open below maxY (symbol y)."""
+ top, bottom = meta["top"], meta["bottom"]
+ scale = 1 / (bottom - top)
+ _, ay, k = anchor
+ limit = ay + part["maxY"] * k if "maxY" in part else math.inf
+ outer = offset_polygon(outline, part["w"])
+ inner = offset_polygon(outline, -0.3)
+ y_front, y_back = -0.12, FRONT_M + 0.05
+ bm = bmesh.new()
+
+ def vert(p, y):
+ return bm.verts.new(((p[0] - 20) * scale, y, (bottom - p[1]) * scale))
+
+ n = len(outline)
+ for i in range(n):
+ j = (i + 1) % n
+ if max(outer[i][1], outer[j][1], inner[i][1], inner[j][1]) > limit:
+ continue
+ of, oj, inf, inj = (
+ vert(outer[i], y_front),
+ vert(outer[j], y_front),
+ vert(inner[i], y_front),
+ vert(inner[j], y_front),
+ )
+ ob, obj, inb, injb = (
+ vert(outer[i], y_back),
+ vert(outer[j], y_back),
+ vert(inner[i], y_back),
+ vert(inner[j], y_back),
+ )
+ bm.faces.new((inf, inj, oj, of))
+ bm.faces.new((of, oj, obj, ob))
+ bm.faces.new((ob, obj, injb, inb))
+ bmesh.ops.remove_doubles(bm, verts=bm.verts, dist=1e-6)
+ bmesh.ops.recalc_face_normals(bm, faces=bm.faces)
+ for face in bm.faces:
+ face.smooth = True
+ return bm
+
+
def region_pieces(item, shape, meta, outline):
top, bottom = meta["top"], meta["bottom"]
scale = 1 / (bottom - top)
@@ -362,6 +403,16 @@ def region_pieces(item, shape, meta, outline):
pieces = []
order = 0
for part in item["parts"]:
+ if part.get("only") == "2d":
+ continue
+ if part["t"] == "rim":
+ pieces.append(
+ (
+ rim_piece(part, meta, meta["anchors"][item["slot"]], outline),
+ material(part["fill"], False),
+ )
+ )
+ continue
if part["t"] != "region":
continue
clip = [(ax + x * k, ay + y * k) for x, y in part["pts"]]
@@ -406,7 +457,7 @@ def main():
pieces = [
(BUILDERS[p["t"]](p), material(p["fill"], p.get("glow", False)))
for p in item["parts"]
- if p["t"] != "region"
+ if p["t"] not in ("region", "rim") and p.get("only") != "2d"
]
if pieces:
assemble(f"acc_{item['id']}", pieces)
diff --git a/scripts/art/companion_accessories.py b/scripts/art/companion_accessories.py
index 0f495733df..a8d1892ea2 100644
--- a/scripts/art/companion_accessories.py
+++ b/scripts/art/companion_accessories.py
@@ -39,6 +39,16 @@ ANCHORS = {
"cloud": {"head": [19.2, 6.6, 0.95], "neck": [20, 30, 0.8], "held": [37, 27.5, 0.9], "back": [21, 20, 1]},
"drop": {"head": [20, 9.6, 0.72], "neck": [20, 33.8, 0.92], "held": [32.5, 34, 0.95], "back": [20, 25, 0.95]},
}
+# Neckline just below the eyes, so clothing dresses the body and leaves the face
+# free. The flat symbol tilts its face; SLOT_FLAT_SHIFT recentres clothing there.
+NECK = {
+ "circle": [20, 22.4, 1.0], "squircle": [20, 22.4, 1.0], "pill": [20, 22.2, 0.85],
+ "triangle": [20, 28.0, 0.8], "hexagon": [20, 22.4, 0.95], "cloud": [20, 27.6, 0.7],
+ "drop": [20, 30.0, 0.95],
+}
+SLOT_FLAT_SHIFT = {"outfit": 1.0, "neck": 1.0}
+# Per-item size on top of the slot anchor scale (hats read small at list size).
+ITEM_SCALE = {"crown": 1.15, "top_hat": 1.12, "cap": 1.15}
FACE_SCALE = {"triangle": 0.9, "cloud": 0.9}
MOUTH_DROP = 6.8
# Held props and mouth props read too small at list sizes without a boost.
@@ -106,28 +116,12 @@ def star(cx, cy, outer, inner, n=5, turn=0.0):
return pts
-def heart(cx, cy, size):
- pts = []
- for i in range(28):
- t = i / 28 * math.tau
- x = 16 * math.sin(t) ** 3
- y = 13 * math.cos(t) - 5 * math.cos(2 * t) - 2 * math.cos(3 * t) - math.cos(4 * t)
- pts.append((cx + x * size / 17, cy - y * size / 17 + size * 0.1))
- return pts
-
-
def mirror_x(half):
"""Close a symmetric outline from its right half (top centre to bottom centre)."""
left = [(-x, y) for x, y in reversed(half[1:-1])]
return list(half) + left
-def leaf(x, y, length, width, angle):
- base = [(0, 0), (length * 0.35, -width), (length, 0), (length * 0.4, width * 0.8)]
- a = math.radians(angle)
- return [(x + px * math.cos(a) - py * math.sin(a), y + px * math.sin(a) + py * math.cos(a)) for px, py in base]
-
-
def quad_curve(p0, p1, p2, steps):
out = []
for i in range(steps):
@@ -170,301 +164,181 @@ def both_sides(parts, dx, dy=0.0, rot=0.0):
return place(parts, dx, dy, rot) + place(place(parts, 0, 0, rot), -dx, dy, flip=True)
+
# --- catalog ----------------------------------------------------------------
+# Ten pieces, each drawn for the flat list size first and checked on every
+# silhouette. Clothing dresses the body below the eyes; the face stays free.
-def head_items():
- items = {}
- spikes = []
- for i in range(5):
- a = math.radians(i * 72)
- x, z = 8.3 * math.sin(a), 8.3 * math.cos(a)
- spikes += [cyl((x, -6.8, z), 2.7, 0, 6.2, GOLD), sphere((x, -10.4, z), 1.05, GOLD)]
- items["crown"] = [cyl((0, -2, 0), 8, 8.6, 4.4, GOLD), *spikes,
- sphere((0, -2, 8.7), [1.6, 1.6, 0.8], RED),
- sphere((-5.2, -2, 6.9), [1.1, 1.1, 0.6], BLUE), sphere((5.2, -2, 6.9), [1.1, 1.1, 0.6], BLUE)]
- items["top_hat"] = place([cyl((0, -0.6, 0), 12, 12, 1.4, "#2a2a31"),
- cyl((0, -7.8, 0), 7.6, 8, 13, "#33333b"),
- cyl((0, -2.6, 0), 7.85, 7.9, 2.8, "body")], rot=-7)
- items["party_hat"] = place([cyl((0, -7.5, 0), 6.6, 0, 15, "#f472b6"),
- sphere((-1.6, -3.2, 4.6), [1.1, 1.1, 0.5], "#fde047"),
- sphere((2.4, -4.6, 3.6), [1, 1, 0.5], CYAN),
- sphere((-0.6, -8.2, 2.6), [0.9, 0.9, 0.5], "#a78bfa"),
- sphere((0, -15.6, 0), 2.3, "#fde047")], rot=13)
- items["cap"] = [dome((0, 1.6, 0), [9.2, 8, 9.2], BLUE), sphere((0, 1.9, 8.2), [8.8, 1.4, 6.2], "#1f4fb0"),
- sphere((0, -6.4, 0), 1.2, "#1f4fb0")]
- items["beanie"] = [dome((0, 2.2, 0), [9.6, 9.8, 9.6], RED), cyl((0, 2.4, 0), 10, 10, 4, RED_DARK),
- sphere((0, -8.4, 0), 3, CREAM)]
- items["cowboy_hat"] = place([sphere((0, 0.2, 0), [15, 1.3, 12], "#a8692e"),
- sphere((-13.8, -1.1, 0), [2.4, 1.7, 5], "#a8692e"),
- sphere((13.8, -1.1, 0), [2.4, 1.7, 5], "#a8692e"),
- cyl((0, -4.6, 0), 6.9, 5.8, 8.8, "#b8773a"),
- cyl((0, -1.6, 0), 6.8, 6.6, 1.8, "#3b2414")], rot=-5)
- items["wizard_hat"] = place([sphere((0, 0, 0), [13, 1.3, 11], "#4c2a96"),
- cyl((0, -10.2, 0), 7.8, 0, 20.4, "#5b35b8"),
- cyl((0, -1.6, 0), 7.3, 7.0, 1.8, GOLD),
- poly(star(1.4, -7.6, 2.2, 0.95), GOLD, z=4.4, d=0.6, glow=True),
- sphere((-1.8, -12.4, 1.8), 0.6, GOLD, glow=True),
- sphere((0.9, -4.4, 6.2), 0.5, GOLD, glow=True)], rot=-10)
- items["halo"] = [torus((0, -7.4, 0), 8, 1.15, "#fde68a", tilt=72, glow=True)]
- items["viking_helmet"] = [dome((0, 2, 0), [9.8, 8.8, 9.8], STEEL), cyl((0, 2.2, 0), 10.1, 10.1, 2.8, "#a77b2c"),
- sphere((-4.6, 2.2, 9), 0.7, "#e7d39a"), sphere((0, 2.2, 10.1), 0.7, "#e7d39a"),
- sphere((4.6, 2.2, 9), 0.7, "#e7d39a"),
- tube([(0, -2, 0), (-0.4, -5, 0), (-0.8, -8, 0)], 0.8, "#a77b2c"),
- *both_sides([cyl((0, -4.6, 0), 2.5, 0.3, 9, "#efe4cc")], 10.4, -0.4, 34)]
- items["chef_hat"] = [cyl((0, -1.2, 0), 8.2, 8.8, 4.6, "#fafaf8"),
- sphere((-4.8, -7.8, 0), 5.4, "#f4f4f0"), sphere((4.8, -7.8, 0), 5.4, "#f4f4f0"),
- sphere((0, -10.6, 0), 6.1, "#fafaf8"), cyl((0, 0.6, 0), 8.3, 8.3, 0.8, "#e4e2dc")]
- items["grad_cap"] = [cyl((0, -2.4, 0), 7.6, 7.8, 5, "#374151"), box((0, -5.6, 0), (21, 2.2, 21), "#2b3445", 0.4),
- sphere((0, -6.5, 0), 0.9, GOLD),
- tube([(0, -6.4, 0.6), (8, -6.4, 6), (10.4, -4.6, 7.6), (10.6, 0.2, 7.6)], 0.8, GOLD, smooth=True),
- cyl((10.6, 1.6, 7.6), 1.3, 0.5, 2.8, GOLD)]
- items["headphones"] = [tube([(-12.6, 6, 0), (-11.8, -1.6, 0), (-6.6, -6.8, 0), (0, -8.2, 0), (6.6, -6.8, 0),
- (11.8, -1.6, 0), (12.6, 6, 0)], 2.2, "#26262b", smooth=True),
- sphere((-13, 7.2, 0), [2.8, 4.5, 4.4], RED), sphere((13, 7.2, 0), [2.8, 4.5, 4.4], RED)]
- ear = [poly(mirror_x([(0, -15), (2.2, -13.2), (3.4, -7), (2.6, 1.5), (0, 1.5)]), "#f5f3f0", z=0, d=2.4,
- smooth=True),
- poly(mirror_x([(0, -12.6), (1.2, -11), (1.8, -6.4), (1.3, -1), (0, -1)]), PINK, z=1.3, d=0.6, smooth=True)]
- items["bunny_ears"] = both_sides(ear, 4.8, 0, 13)
- cat = [poly([(-5.6, 2.4), (-1.8, -9.4), (5.4, 2.4)], "body", z=0, d=2.6),
- poly([(-3, 1), (-1.6, -5.8), (2.4, 1)], PINK, z=1.5, d=0.6)]
- items["cat_ears"] = both_sides(cat, 7, 0, 18)
- items["devil_horns"] = both_sides([cyl((0, -3.4, 0), 2.4, 0, 7.4, "#d42f2f")], 5.6, 0, 22)
- petals = [sphere((2.9 * math.sin(math.radians(a)), -2.9 * math.cos(math.radians(a)), 2.6), [2.5, 2.5, 1.3], PINK)
- for a in range(0, 360, 72)]
- items["flower"] = place([*petals, sphere((0, 0, 3.4), [1.7, 1.7, 1], "#fde047"),
- poly(leaf(1, 2.4, 6, 1.8, 30), GREEN, z=1.6, d=0.6, smooth=True)], -6.4, -0.6)
- antenna = [tube([(0, 1.5, 0), (0, -8.4, 0)], 1.1, "#3f3f46"), sphere((0, -9.8, 0), 2.3, "#a3e635", glow=True)]
- items["antennae"] = both_sides(antenna, 3.8, 0, 14)
- items["propeller_cap"] = [dome((0, 1.8, 0), [9.2, 7.8, 9.2], "#f43f5e"), cyl((0, 2, 0), 9.4, 9.4, 1.8, "#facc15"),
- tube([(0, -5.6, 0), (0, -8.8, 0)], 1, "#3f3f46"),
- box((0, -9.2, 0), (17.4, 1.1, 3.2), "#3b82f6", 0.5), sphere((0, -9.2, 0), 1.25, "#facc15")]
- items["santa_hat"] = [cyl((2.2, -6.2, 0), 8.6, 0.6, 13, "#d42f2f", rot=22),
- cyl((0, 1.6, 0), 9.8, 9.8, 3.8, "#fafafa"), sphere((4.8, -12.6, 0), 2.7, "#fafafa")]
- items["bow"] = place([sphere((-3.4, 0, 0), [3.6, 2.6, 1.6], "#ec4899", rot=-18),
- sphere((3.4, 0, 0), [3.6, 2.6, 1.6], "#ec4899", rot=18),
- sphere((0, 0, 0.8), [1.5, 1.7, 1.2], "#be185d")], 6.4, -0.4, 16)
- items["sprout"] = [tube([(0, 1.5, 0), (0.4, -3, 0), (0, -6.4, 0)], 1.1, GREEN, smooth=True),
- poly(leaf(0, -6.2, 7, 2.2, -150), "#84cc16", z=0, d=0.8, smooth=True),
- poly(leaf(0, -6.2, 6, 2, -30), "#84cc16", z=0, d=0.8, smooth=True)]
- items["pirate_hat"] = place([
- poly([(-14.4, 0.6), (-12.4, -5.6), (-6.4, -9.4), (0, -8.4), (6.4, -9.4), (12.4, -5.6), (14.4, 0.6),
- (6.4, -1.4), (0, -1), (-6.4, -1.4)], "#34343e", z=0, d=8, smooth=True),
- tube([(-13.8, 0, 4.1), (-6.4, -1.8, 4.1), (0, -1.4, 4.1), (6.4, -1.8, 4.1), (13.8, 0, 4.1)], 0.9, GOLD,
- smooth=True),
- sphere((0, -5, 4.3), [2.3, 2.1, 0.6], "#f4f4f5"), box((0, -2.8, 4.3), (2, 1.2, 0.6), "#f4f4f5", 0.3),
- sphere((-0.8, -5.2, 4.9), 0.5, INK), sphere((0.8, -5.2, 4.9), 0.5, INK)], rot=-4)
- items["sweatband"] = [band(1.2, 4.4, RED), band(2.4, 3.2, "#fafafa", mode="front")]
- return items
+NAVY, NAVY_LAPEL, NAVY_DARK = "#2c3a55", "#212b42", "#18202f"
+SHIRT, SHIRT_SHADE = "#f4f6f8", "#dfe4ea"
+BURGUNDY, BURGUNDY_DARK = "#b3243b", "#86182b"
+TUX, TUX_SATIN = "#22232b", "#3a3c48"
+COAT, COAT_SHADE, COAT_BLUE = "#f2f4f7", "#dde2e9", "#a9c8ef"
+TEAL = "#0f766e"
+HOODIE, HOODIE_DARK, MINT = "#4a5160", "#3a404c", "#34d399"
-def face_items():
- items = {}
- bridge = lambda fill, w=0.9: tube([(-1.3, -0.6, 0.8), (0, -1.3, 0.8), (1.3, -0.6, 0.8)], w, fill, smooth=True) # noqa: E731
- items["sunglasses"] = [*both_sides([box((0, 0.2, 0.9), (7.6, 5.6, 1.2), "#121216", 2.2),
- tube([(-2.2, -1, 1.6), (-0.9, -2, 1.6)], 0.7, "#e7e7ea")], 4.9),
- bridge("#121216")]
- items["round_glasses"] = [*both_sides([torus((0, 0, 0.7), 3.6, 0.55, "#b07a2a")], 4.9), bridge("#b07a2a", 0.75)]
- items["monocle"] = [torus((4.8, 0, 0.8), 4, 0.65, GOLD),
- tube([(8.4, 1.6, 0.7), (9.4, 5.4, 0.5), (8.2, 9.6, 0.3)], 0.45, GOLD, smooth=True)]
- items["eye_patch"] = [sphere((-4.8, 0.2, 0.7), [3.9, 3.5, 0.6], "#18181b"),
- tube([(-14, 2.6, -1), (-8.6, 0.4, 0.5), (-4.8, -1, 1), (0, -3.4, 0.6), (7, -5.6, 0.3),
- (14, -6.4, -1)], 0.8, "#18181b", smooth=True)]
- items["star_glasses"] = [*both_sides([poly(star(0, 0, 4.7, 2.3), "#facc15", z=0.9, d=0.9)], 5.2),
- bridge("#facc15")]
- items["heart_glasses"] = [*both_sides([poly(heart(0, 0, 4.6), "#ef4444", z=0.9, d=0.9, smooth=True)], 5.1),
- bridge("#ef4444")]
- items["cyber_visor"] = [box((0.2, 0, 0.9), (20.4, 5.8, 1.4), "#1e293b", 2.7),
- box((0.2, 0, 1.7), (15, 1.1, 0.3), CYAN, 0.5, glow=True)]
- items["glasses_3d"] = [box((0, 0, 0.6), (19.4, 6.4, 0.9), WHITE, 1),
- box((-4.8, 0, 1.2), (7, 4.4, 0.4), "#ef4444", 0.6),
- box((4.8, 0, 1.2), (7, 4.4, 0.4), CYAN, 0.6)]
- frame = [tube([(-3.8, -3), (3.8, -3), (3.8, 3.1), (-3.8, 3.1), (-3.8, -3)], 1.3, "#18181b")]
- items["nerd_glasses"] = [*both_sides(frame, 5), box((0, -1, 1.1), (2.8, 2.2, 0.6), "#f5f5f4", 0.3)]
- items["ski_goggles"] = [box((0, 0, 0.4), (21.4, 8.6, 1), "#e5e7eb", 3.9),
- box((0, 0, 1.1), (19.2, 6.8, 0.8), "#fb923c", 3.2),
- tube([(-6.4, -1.6, 1.6), (-3.6, -2.6, 1.6)], 0.8, "#fff7ed"),
- *both_sides([tube([(0, 0, 0.4), (4.6, 0.6, -2)], 2.6, "#1f2937")], 10.6)]
- items["blush"] = both_sides([sphere((0, 4.6, 0.3), [2.6, 1.5, 0.4], "#fb7185")], 7.6)
- items["angry_brows"] = both_sides([tube([(-2.6, -6.4, 0.4), (2.4, -4.4, 0.4)], 1.4, INK)], -5.2)
- items["raised_brows"] = both_sides([tube([(-2.6, -5.2, 0.4), (0, -6.8, 0.4), (2.4, -5.8, 0.4)], 1.2, INK,
- smooth=True)], 5.0)
- return items
+def octagon(cx, cy, r):
+ return [(cx + r * math.cos(math.radians(22.5 + 45 * i)), cy + r * math.sin(math.radians(22.5 + 45 * i)))
+ for i in range(8)]
-def mouth_items():
- items = {}
- smoke = lambda x, y: tube([(x, y, 1.4), (x + 1.6, y - 3, 1.5), (x + 0.2, y - 6.2, 1.6), (x + 2, y - 9.6, 1.7)], # noqa: E731
- 0.85, "#d4d4d8", smooth=True)
- items["cigar"] = [tube([(0.6, 0, 0.6), (10, 2.4, 1.2)], 3, "#7a4a26"),
- tube([(2.7, 0.55, 0.7), (3.6, 0.8, 0.8)], 3.2, GOLD),
- tube([(10.1, 2.43, 1.2), (11.1, 2.7, 1.3)], 2.95, "#f97316", glow=True),
- smoke(11.6, 1.2)]
- items["pipe"] = [tube([(0.6, 0, 0.6), (6.6, 1.6, 1.2)], 1.3, "#3b2617"),
- cyl((8, 0.4, 1.2), 1.9, 2.3, 4.4, "#7a4a26"), sphere((8, -1.8, 1.2), [2.1, 0.5, 2.1], "#27272a"),
- smoke(8, -2.6)]
- items["lollipop"] = [tube([(0.4, 0, 0.6), (6.6, 2.8, 1.4)], 0.9, "#fafafa"),
- sphere((8.8, 3.8, 1.6), [3.4, 3.4, 0.9], "#f472b6"),
- torus((8.8, 3.8, 2.4), 1.8, 0.45, "#fafafa")]
- items["mustache"] = [poly(mirror_x([(0, -2.2), (2.4, -3.2), (5, -2.4), (7.6, -2), (9.6, -4), (9.6, -0.8),
- (6.8, 0.6), (3.4, 0.2), (0, 0)]), BROWN_DARK, z=0.7, d=1, smooth=True)]
- items["beard"] = [poly(mirror_x([(0, 0.6), (5.4, -0.4), (9.4, -3.6), (11.4, -2.4), (10.6, 4.4), (6.6, 9.6),
- (0, 11.4)]), "#7a4a26", z=0.6, d=1.4, smooth=True),
- poly(mirror_x([(0, -2), (3, -3), (6, -1.8), (6.6, 0.2), (3, 0), (0, 0.4)]), BROWN_DARK, z=1.6,
- d=0.8, smooth=True)]
- items["straw"] = [tube([(0.4, 0, 0.6), (7.6, -2.4, 1.2), (12.6, -3.6, 1.4)], 0.8, "#eab308", smooth=True),
- sphere((13.4, -3.8, 1.4), [1.7, 0.8, 0.8], "#ca8a04", rot=-12)]
- items["rose"] = [tube([(0.4, 0, 0.6), (10, 2.4, 1.2)], 0.9, "#16a34a"),
- poly(leaf(5, 1.4, 4, 1.4, 40), "#22c55e", z=1, d=0.5, smooth=True),
- sphere((11.4, 2.6, 1.4), 2.7, "#e11d48"), torus((11.4, 2.6, 3.8), 1.3, 0.42, "#9f1239")]
- items["bubble_gum"] = [sphere((0.4, 0.6, 3.2), [4.6, 4.6, 3.6], PINK), sphere((-1, -1, 6.4), [1, 1, 0.5], WHITE)]
- items["smile"] = [tube([(-3.2, -0.8, 0.4), (0, 1.4, 0.4), (3.2, -0.8, 0.4)], 1.2, INK, smooth=True)]
- items["tongue"] = [poly([(-1.6, 0), (1.6, 0), (1.8, 2.6), (0, 3.7), (-1.8, 2.6)], "#fb7185", z=0.3, d=0.6,
- smooth=True),
- tube([(-2.8, -0.4, 0.6), (0, 0.5, 0.6), (2.8, -0.4, 0.6)], 1.1, INK, smooth=True)]
- return items
+def rect(x0, y0, x1, y1):
+ return [(x0, y0), (x1, y0), (x1, y1), (x0, y1)]
-def neck_items():
- items = {}
- bowtie = lambda fill, knot, s=1.0: [ # noqa: E731
- poly([(0, -1 * s), (5 * s, -3.2 * s), (5.8 * s, 0), (5 * s, 3.2 * s), (0, 1 * s), (-5 * s, 3.2 * s),
- (-5.8 * s, 0), (-5 * s, -3.2 * s)], fill, z=0.8, d=1.2),
- sphere((0, 0, 1.4), [1.4 * s, 1.6 * s, 0.8], knot)]
- items["bow_tie"] = bowtie("#dc2626", "#991b1b")
- items["necktie"] = [poly([(-1.7, -0.8), (1.7, -0.8), (1.1, 1.9), (-1.1, 1.9)], "#2563eb", z=0.8, d=1),
- region([(-1.1, 1.8), (1.1, 1.8), (2.5, 9.2), (0, 11.4), (-2.5, 9.2)], "#2563eb", mode="front"),
- region([(-60, 4.6), (60, 4.6), (60, 5.6), (-60, 5.6)], "#facc15", mode="front")]
- # The stripe above is clipped to the tie only in the flat symbol; keep it subtle.
- items["necktie"][2] = region([(-1.6, 4.6), (1.6, 4.6), (1.9, 5.8), (-1.9, 5.8)], "#facc15", mode="front")
- items["scarf"] = [band(-1.6, 2.6, RED),
- poly([(3, 1.2), (6.6, 1.2), (7.2, 8.8), (3.6, 9)], "#d0362d", z=0.9, d=1.2),
- tube([(3.4, 6, 1.6), (6.9, 5.8, 1.6)], 0.8, "#fafafa")]
- chain = quad_curve((-8.6, -2.2), (0, 7.6), (8.6, -2.2), 9)
- items["gold_chain"] = [tube([(x, y, 0.5) for x, y in chain], 0.9, GOLD, smooth=True),
- sphere((0, 4.6, 0.9), [2.3, 2.3, 0.6], GOLD), sphere((0, 4.6, 1.4), [1.2, 1.2, 0.4], GOLD_DARK)]
- items["medal"] = [tube([(-3.2, -2.4, 0.5), (0, 2.6, 0.6)], 1.8, "#2563eb"),
- tube([(3.2, -2.4, 0.5), (0, 2.6, 0.6)], 1.8, "#dc2626"),
- sphere((0, 4.4, 1), [2.6, 2.6, 0.6], GOLD), poly(star(0, 4.4, 1.6, 0.7), GOLD_DARK, z=1.6, d=0.3)]
- items["bandana"] = [band(-1, 1.4, "#dc2626"), region([(-5.6, 0), (5.6, 0), (0, 7)], "#dc2626", mode="front"),
- sphere((-2, 1.8, 0.8), 0.6, WHITE), sphere((2, 1.8, 0.8), 0.6, WHITE),
- sphere((0, 4.4, 0.8), 0.6, WHITE)]
- lei_colors = ["#f472b6", "#facc15", "#fb923c", "#a78bfa"]
- items["lei"] = [sphere((x, y, 0.9), [1.7, 1.7, 1], lei_colors[i % 4])
- for i, (x, y) in enumerate(quad_curve((-9.6, -2), (0, 8.4), (9.6, -2), 9))]
- items["pearls"] = [sphere((x, y, 0.7), 0.95, "#f4f1ea") for x, y in quad_curve((-8.8, -2.2), (0, 7), (8.8, -2.2), 13)]
- items["collar_bell"] = [band(-0.8, 1.2, "#dc2626"), sphere((0, 2.8, 1.2), 2, GOLD),
- tube([(-0.9, 3.6, 3), (0.9, 3.6, 3)], 0.5, "#6b4b12")]
- return items
+def front(pts, fill, **kw):
+ return region(pts, fill, mode="front", **kw)
+
+
+def rim(width, fill, **kw):
+ """The body silhouette grown outward, drawn behind it (a hood, a frame)."""
+ return {"t": "rim", "w": width, "fill": fill, **kw}
+
+
+def torso(top=0.0):
+ """Everything below sloped shoulders: the neckline is flat only under the chin."""
+ pts = [(-20, 7.0), (-15, 3.2), (-10, 1.0), (-5, -0.2), (5, -0.2), (10, 1.0), (15, 3.2), (20, 7.0), (60, 60), (-60, 60)]
+ return [(x, y + top) for x, y in pts]
+
+
+def lapels(v_tip, fill, reach=8.2):
+ """Two lapels along a shirt V that opens at the neckline and closes at v_tip."""
+ left = [(-4.6, -0.4), (0, v_tip), (-1.3, v_tip + 1.6), (-reach + 1.3, 3.4), (-reach, 0.2)]
+ return [front(left, fill), front([(-x, y) for x, y in reversed(left)], fill)]
def outfit_items():
items = {}
- jacket = lambda fill, top=-0.6: region([(-60, top), (60, top), (60, 60), (-60, 60)], fill) # noqa: E731
- items["suit"] = [jacket("#1f2a44"), region([(-3.4, -0.7), (3.4, -0.7), (0, 7.2)], WHITE, mode="front"),
- region([(-0.9, -0.2), (0.9, -0.2), (1.5, 5), (0, 6.4), (-1.5, 5)], "#dc2626", mode="front")]
- items["tuxedo"] = [jacket("#141418"), region([(-4, -0.7), (4, -0.7), (0, 8.2)], WHITE, mode="front"),
- poly([(0, -0.5), (3, -1.8), (3.4, 0.6), (3, 1.9), (0, 0.6), (-3, 1.9), (-3.4, 0.6), (-3, -1.8)],
- "#141418", z=0.9, d=0.8),
- sphere((0, 3.4, 0.7), 0.5, INK), sphere((0, 5.2, 0.7), 0.5, INK)]
- items["lab_coat"] = [jacket("#f1f2f4"), region([(-3, -0.7), (3, -0.7), (0, 5.8)], "#93c5fd", mode="front"),
- region([(4.2, 3), (8, 3), (8, 6.4), (4.2, 6.4)], "#dcdee3", mode="front"),
- tube([(5.2, 2, 0.6), (5.2, 4.4, 0.6)], 0.8, BLUE)]
- items["hoodie"] = [jacket("#6b7280"), region([(-6, 4), (6, 4), (7.6, 9.4), (-7.6, 9.4)], "#4b5563", mode="front"),
- *both_sides([tube([(0, -0.4, 0.5), (-0.2, 3.6, 0.5)], 0.7, "#f4f4f5"),
- sphere((-0.2, 4, 0.7), 0.6, "#f4f4f5")], 1.8)]
- items["jersey"] = [jacket("#dc2626"), band(3, 4.8, "#fafafa", mode="front"),
- region([(-2.6, -0.7), (2.6, -0.7), (0, 2.6)], "#fafafa", mode="front"),
- poly(star(0, 8, 2.2, 1), "#fafafa", z=0.4, d=0.4)]
- items["overalls"] = [region([(-60, 3.4), (60, 3.4), (60, 60), (-60, 60)], "#3b5b9a"),
- region([(-5, 0.8), (5, 0.8), (5, 3.6), (-5, 3.6)], "#3b5b9a", mode="front"),
- *both_sides([region([(-1, -1.2), (1, -1.2), (1, 1), (-1, 1)], "#3b5b9a", mode="front"),
- sphere((0, 1.4, 0.8), 0.75, GOLD)], 5),
- region([(-2.2, 4.6), (2.2, 4.6), (2.2, 7), (-2.2, 7)], "#2f4a80", mode="front")]
- flower = lambda x, y: [sphere((x + 1.1 * math.sin(math.radians(a)), y - 1.1 * math.cos(math.radians(a)), 0.6), # noqa: E731
- [0.9, 0.9, 0.4], PINK) for a in range(0, 360, 72)] + [
- sphere((x, y, 0.9), 0.55, "#fde047")]
- items["hawaiian_shirt"] = [jacket("#14b8a6"), region([(-3.6, -0.7), (3.6, -0.7), (0, 5)], WHITE, mode="front"),
- *flower(-5.6, 3.2), *flower(5.4, 4.6), *flower(-1.2, 7.4)]
- items["knight_armor"] = [jacket(STEEL), region([(-6, 0.4), (6, 0.4), (5, 9), (0, 11.4), (-5, 9)], "#cbd5e1",
- mode="front"),
- region([(-0.6, 0.4), (0.6, 0.4), (0.6, 11), (-0.6, 11)], "#94a3b8", mode="front"),
- sphere((-4.2, 1.6, 0.7), 0.6, "#64748b"), sphere((4.2, 1.6, 0.7), 0.6, "#64748b")]
- items["hero_suit"] = [jacket("#2563eb"), region([(0, 0.6), (4.6, 4.4), (0, 8.8), (-4.6, 4.4)], "#facc15",
- mode="front"),
- region([(0, 2.4), (2.4, 4.4), (0, 6.6), (-2.4, 4.4)], "#dc2626", mode="front")]
+ jacket = lambda fill, top=0.0: region(torso(top), fill) # noqa: E731
+ collar = [front([(-4.4, -0.4), (-0.9, 0.2), (-2.6, 2.8)], SHIRT_SHADE),
+ front([(4.4, -0.4), (2.6, 2.8), (0.9, 0.2)], SHIRT_SHADE)]
+ pocket_square = [front(rect(5.0, 4.0, 8.8, 4.5), NAVY_DARK),
+ front([(5.4, 4.0), (6.9, 4.0), (6.0, 2.3)], SHIRT),
+ front([(6.4, 4.0), (8.2, 4.0), (7.6, 2.5)], SHIRT)]
+
+ items["suit"] = [
+ jacket(NAVY),
+ front([(-4.6, -0.4), (4.6, -0.4), (0, 8.8)], SHIRT), *collar,
+ front([(-1.0, 2.0), (1.0, 2.0), (2.1, 8.2), (0, 10.4), (-2.1, 8.2)], BURGUNDY),
+ front([(-1.1, 3.9), (1.2, 3.1), (1.32, 3.75), (-1.2, 4.55)], BURGUNDY_DARK),
+ front([(-1.6, 6.7), (1.75, 5.6), (1.85, 6.3), (-1.65, 7.4)], BURGUNDY_DARK),
+ poly([(-1.55, -0.4), (1.55, -0.4), (1.0, 2.1), (-1.0, 2.1)], BURGUNDY, z=0.9, d=0.9),
+ *lapels(8.8, NAVY_LAPEL),
+ front(octagon(0, 11.7, 0.8), NAVY_DARK), front(octagon(0, 14.4, 0.8), NAVY_DARK),
+ *pocket_square,
+ ]
+ items["tuxedo"] = [
+ jacket(TUX),
+ front([(-4.4, -0.4), (4.4, -0.4), (0, 9.8)], SHIRT),
+ front(rect(-1.85, 3.0, -1.5, 7.6), SHIRT_SHADE), front(rect(1.5, 3.0, 1.85, 7.6), SHIRT_SHADE),
+ front(octagon(0, 3.6, 0.5), INK), front(octagon(0, 5.8, 0.5), INK), front(octagon(0, 8.0, 0.45), INK),
+ *lapels(9.8, TUX_SATIN),
+ poly([(0, -0.1), (3.6, -1.5), (4.1, 0.9), (3.6, 2.7), (0, 1.3), (-3.6, 2.7), (-4.1, 0.9), (-3.6, -1.5)],
+ TUX, z=0.9, d=1.0),
+ sphere((0, 0.6, 1.4), [1.1, 1.3, 0.7], "#26272f"),
+ front(rect(5.0, 4.0, 8.8, 4.5), "#0d0d10"),
+ front([(5.4, 4.0), (6.9, 4.0), (6.0, 2.3)], SHIRT), front([(6.4, 4.0), (8.2, 4.0), (7.6, 2.5)], SHIRT),
+ ]
+ items["lab_coat"] = [
+ jacket(COAT),
+ front([(-4.0, -0.4), (4.0, -0.4), (0, 7.6)], COAT_BLUE),
+ front([(-0.9, 1.8), (0.9, 1.8), (1.8, 6.6), (0, 8.4), (-1.8, 6.6)], TEAL),
+ poly([(-1.4, -0.4), (1.4, -0.4), (0.9, 1.9), (-0.9, 1.9)], TEAL, z=0.9, d=0.8),
+ *lapels(7.6, COAT_SHADE, reach=8.8),
+ front(rect(-0.2, 9.2, 0.25, 40), COAT_SHADE),
+ front(rect(5.6, 1.8, 6.3, 4.6), "#2f6fe0"), front(rect(6.9, 2.3, 7.6, 4.6), "#e0483e"),
+ front(rect(4.6, 3.8, 8.8, 7.6), COAT_SHADE),
+ front(rect(-8.8, 4.4, -5.0, 8.8), "#ffffff"), front(rect(-8.8, 4.4, -5.0, 5.5), TEAL),
+ front(rect(-8.2, 6.4, -5.6, 6.8), "#c5ccd6"), front(rect(-8.2, 7.4, -6.4, 7.8), "#c5ccd6"),
+ ]
+ code = [tube([(5.2, 2.6, 0.5), (4.2, 3.5, 0.5), (5.2, 4.4, 0.5)], 0.55, MINT),
+ tube([(6.6, 2.4, 0.5), (5.8, 4.6, 0.5)], 0.55, MINT),
+ tube([(7.2, 2.6, 0.5), (8.2, 3.5, 0.5), (7.2, 4.4, 0.5)], 0.55, MINT)]
+ strings = both_sides([tube([(0, 2.2, 0.7), (-0.3, 6.6, 0.7)], 0.7, "#e5e7eb"),
+ sphere((-0.3, 7.0, 0.8), [0.45, 0.7, 0.45], "#9ca3af")], 2.2)
+ items["hoodie"] = [
+ rim(1.9, HOODIE, maxY=4.0),
+ region(torso(0.8), HOODIE),
+ front([(-5.2, 0.8), (5.2, 0.8), (4.0, 2.7), (0, 3.3), (-4.0, 2.7)], HOODIE_DARK),
+ front([(-6.4, 7.6), (6.4, 7.6), (7.8, 13.0), (-7.8, 13.0)], HOODIE_DARK),
+ *strings, *code,
+ ]
return items
-def back_items():
+def head_items():
items = {}
- angel = poly([(0, 0), (4, -6), (10, -10), (16.4, -11), (15, -6.4), (17.4, -4.2), (14, -1.2), (15.4, 2.2),
- (10, 3.2), (6, 4.6)], "#f8fafc", z=-1, d=1.6, smooth=True)
- items["angel_wings"] = both_sides([angel], 8.6, -2)
- bat = poly([(0, 0), (4, -7), (10, -11), (18.4, -9.4), (15.6, -5.4), (17.4, -1.6), (13.4, -2.8), (12.4, 1.8),
- (8.4, -0.4), (5, 3.2)], "#4c1d95", z=-1, d=1.4)
- items["bat_wings"] = both_sides([bat], 8.6, -2)
- items["cape"] = [poly([(-12, -11), (12, -11), (17.6, 6), (21, 21.4), (10, 19.6), (0, 21.8), (-10, 19.6), (-21, 21.4),
- (-17.6, 6)], "#b91c1c", z=-1.2, d=1.2, smooth=True)]
- jet = [cyl((0, 1, -4), 3.8, 3.8, 24, "#9ca3af"), dome((0, -11, -4), [3.8, 2.8, 3.8], "#b8c0c8"),
- cyl((0, 13.8, -4), 2.3, 3, 2.6, "#52525b"),
- cyl((0, 19.6, -4), 0, 2.7, 9, "#fb923c", glow=True), cyl((0, 18.2, -3.4), 0, 1.5, 5, "#fde047", glow=True)]
- items["jetpack"] = both_sides(jet, 9.6)
- upper = poly([(0, 0), (5, -8.4), (12.4, -11.6), (15.6, -6.4), (10.6, -0.8)], "#f59e0b", z=-1, d=1, smooth=True)
- lower = poly([(0, 1), (9.4, 2.4), (11.4, 7.6), (5, 8.6)], "#fb923c", z=-1.1, d=1, smooth=True)
- dots = [sphere((10.6, -6.6, -0.2), [1.4, 1.4, 0.4], "#fff7ed"), sphere((8, 5, -0.4), [1, 1, 0.4], "#7c2d12")]
- items["butterfly_wings"] = both_sides([upper, lower, *dots], 7.6, -1)
- items["devil_tail"] = [tube([(4, 13, -1), (12, 17, -1), (19.4, 12.4, -1), (19, 5.4, -1)], 2, "#d42f2f",
- smooth=True),
- poly([(19, 0.6), (22.4, 6.2), (19, 5), (15.6, 6.2)], "#d42f2f", z=-1, d=1.2)]
+ spikes = []
+ for i in range(5):
+ a = math.radians(36 + i * 72)
+ x, z = 8.2 * math.sin(a), 8.2 * math.cos(a)
+ spikes += [cyl((x, -6.5, z), 2.5, 0, 5.6, GOLD), sphere((x, -9.7, z), 1.05, "#ffe08a")]
+ sapphires = [sphere((8.5 * math.sin(math.radians(a)), -1.9, 8.5 * math.cos(math.radians(a))), [1.1, 1.1, 0.6],
+ "#2f6fe0") for a in (-48, 48)]
+ items["crown"] = [
+ dome((0, -1.6, 0), [7.2, 6.0, 7.2], "#a61e36"),
+ cyl((0, -1.8, 0), 8.0, 8.5, 4.4, GOLD),
+ cyl((0, 0.25, 0), 8.15, 8.15, 0.9, GOLD_DARK), cyl((0, -3.75, 0), 8.55, 8.55, 0.7, GOLD_DARK),
+ *spikes,
+ sphere((0, -1.9, 8.6), [1.7, 1.7, 0.8], "#d7263d"), *sapphires,
+ sphere((0, -7.8, 0), 1.25, GOLD),
+ tube([(0, -8.8, 0), (0, -11.8, 0)], 0.85, GOLD), tube([(-1.1, -10.7, 0), (1.1, -10.7, 0)], 0.85, GOLD),
+ box((-3.2, -2.9, 8.9), (4.2, 0.6, 0.1), "#ffe39b", 0.3, only="2d"),
+ ]
+ items["top_hat"] = place([
+ cyl((0, -0.5, 0), 12.4, 12.4, 1.4, "#1e1f26"),
+ sphere((-12.2, -0.9, 0), [1.6, 1.2, 4.2], "#1e1f26", only="2d"),
+ sphere((12.2, -0.9, 0), [1.6, 1.2, 4.2], "#1e1f26", only="2d"),
+ cyl((0, -7.6, 0), 7.4, 7.8, 12.6, "#272832"),
+ cyl((0, -2.5, 0), 7.5, 7.55, 2.8, BURGUNDY),
+ box((-4.4, -8.6, 7.9), (1.3, 9.6, 0.1), "#3b3d4a", 0.6, only="2d"),
+ ], dy=0.8, rot=-6)
+ seams = [tube([(0, -6.2, 0), (0, 1.4, 0)], 0.45, "#2556b8", only="2d"),
+ *both_sides([tube([(-0.2, -5.6, 0), (-1.6, 1.6, 0)], 0.45, "#2556b8", smooth=True, only="2d")], -4.6)]
+ items["cap"] = [
+ dome((0, 1.8, 0), [9.4, 8.4, 9.4], "#2f6fe0"), *seams,
+ sphere((0, -6.6, 0), 1.2, "#2556b8"),
+ poly(star(0, -1.4, 2.0, 0.9), "#ffffff", z=8.7, d=0.4),
+ sphere((0, 2.4, 7.6), [11.6, 1.9, 7.4], "#1f4aa0"),
+ box((0, 1.6, 8.9), (14, 0.5, 0.1), "#3a6fd0", 0.25, only="2d"),
+ ]
+ items["headphones"] = [
+ tube([(-12.8, 5.6, 0), (-12.0, -1.8, 0), (-6.8, -7.2, 0), (0, -8.6, 0), (6.8, -7.2, 0), (12.0, -1.8, 0),
+ (12.8, 5.6, 0)], 2.4, "#2b2d34", smooth=True),
+ tube([(-5.4, -6.4, 0.9), (0, -7.6, 0.9), (5.4, -6.4, 0.9)], 1.6, "#454956", smooth=True),
+ *both_sides([sphere((0, 7.4, 0), [1.4, 4.6, 4.2], "#f97316"),
+ sphere((1.7, 7.4, 0), [2.6, 5.2, 4.8], "#2b2d34"),
+ box((2.6, 7.4, 0), (1.2, 4.4, 3.2), "#3d404a", 0.5)], 11.4),
+ ]
return items
-def held_items():
- items = {}
- items["coffee"] = [cyl((3.2, 0, 0), 2.6, 3.1, 6, "#fafaf9"), cyl((3.2, 0.3, 0), 2.76, 2.96, 2.6, "#a8692e"),
- cyl((3.2, -3.4, 0), 3.3, 3.2, 1, "#e7e5e4"),
- tube([(3, -4.6, 0), (4.4, -6.8, 0), (3, -9, 0), (4.4, -11, 0)], 0.8, "#d4d4d8", smooth=True)]
- items["wrench"] = place([tube([(0, 4, 0), (0, -5, 0)], 2, "#9ca3af"),
- poly([(-2.2, -4.4), (-2.6, -8), (-1, -9.6), (-0.6, -7), (0.6, -7), (1, -9.6), (2.6, -8),
- (2.2, -4.4)], "#9ca3af", z=0, d=1.6)], 4, 0, 30)
- sparkle = [poly(star(9.2, -8.6, 2.1, 0.8, 4), GOLD, z=0.4, d=0.4, glow=True),
- poly(star(11.6, -5, 1.3, 0.5, 4), GOLD, z=0.4, d=0.4, glow=True),
- poly(star(7.4, -11.4, 1.1, 0.45, 4), GOLD, z=0.4, d=0.4, glow=True)]
- items["magic_wand"] = [tube([(0.6, 3, 0), (6.4, -5.4, 0)], 1.2, "#18181b"),
- tube([(5.7, -4.4, 0), (6.4, -5.4, 0)], 1.25, WHITE), *sparkle]
- items["sword"] = place([poly([(-1, 1), (1, 1), (1, -11.4), (0, -14), (-1, -11.4)], "#e5e7eb", z=0, d=0.8),
- box((0, 1.7, 0), (7, 1.4, 1.6), GOLD, 0.6), tube([(0, 2.6, 0), (0, 5.6, 0)], 1.4, BROWN),
- sphere((0, 6.2, 0), 1.1, GOLD)], 4, 0, 18)
- items["laser_sword"] = place([tube([(0, 6, 0), (0, 1.8, 0)], 1.9, "#52525b"),
- tube([(0, 2.6, 0), (0, 3.2, 0)], 2.1, "#27272a"),
- tube([(0, 1.2, 0), (0, -14, 0)], 1.9, CYAN, glow=True),
- tube([(0, 1.2, 0.3), (0, -13.6, 0.3)], 0.8, "#ecfeff", glow=True)], 4, 0, 15)
- items["balloon"] = [tube([(1, 2, 0), (2.4, -3, 0), (1.6, -7.6, 0), (3.2, -11.4, 0)], 0.45, "#71717a", smooth=True),
- sphere((3.4, -11.6, 0), [0.9, 0.7, 0.9], RED),
- sphere((3.6, -17, 0), [4.6, 5.4, 4.6], RED), sphere((2, -19, 3.6), [1, 1.5, 0.6], "#fecaca")]
- items["flag"] = [tube([(1, 4, 0), (1, -14, 0)], 0.9, "#a1a1aa"), sphere((1, -14.6, 0), 1, GOLD),
- poly([(1.4, -13.6), (5, -14.6), (8.6, -13), (11.8, -14), (11.8, -7.4), (8.6, -6.4), (5, -8),
- (1.4, -7)], "body", z=0, d=0.6, smooth=True)]
- items["book"] = [box((4, 0, 0), (6.2, 7.8, 2.4), "#2563eb", 0.5), box((6.9, 0, 0), (0.7, 7, 1.9), "#fafaf9", 0.1),
- box((3.7, -1.8, 1.25), (3.4, 0.7, 0.1), GOLD, 0.2)]
- items["briefcase"] = [box((4, 1, 0), (9, 6.6, 2.6), "#7a4a26", 0.9), torus((4, -2.6, 0), 1.8, 0.5, "#3b2617"),
- box((4, -1.2, 1.35), (1.6, 1, 0.3), GOLD, 0.2)]
- items["trophy"] = [cyl((4, -4.4, 0), 1.6, 3.8, 5.6, GOLD), torus((0.8, -4.8, 0), 1.6, 0.5, GOLD),
- torus((7.2, -4.8, 0), 1.6, 0.5, GOLD), cyl((4, -0.4, 0), 0.8, 0.8, 2.6, GOLD_DARK),
- box((4, 2, 0), (5.6, 2, 2.6), "#5b3a1e", 0.4), poly(star(4, -4.4, 1.3, 0.55), "#fff7d6", z=2.1, d=0.3)]
- items["rubber_duck"] = [sphere((4.4, 0, 0), [4, 3, 3.2], "#facc15"), sphere((2.6, -3.6, 0), 2.4, "#facc15"),
- sphere((0.2, -3.4, 0.4), [1.4, 0.7, 1], "#fb923c"), sphere((2, -4.2, 2), 0.5, INK)]
- items["pizza"] = place([poly([(-4.4, -4.4), (4.4, -4.4), (0, 6)], "#fcd34d", z=0, d=1),
- tube([(-4.6, -4.8, 0), (4.6, -4.8, 0)], 2, "#b45309"),
- sphere((-1.4, -2, 0.6), [1.1, 1.1, 0.3], "#dc2626"),
- sphere((1.6, -1.4, 0.6), [1.1, 1.1, 0.3], "#dc2626"),
- sphere((0, 1.6, 0.6), [1, 1, 0.3], "#dc2626")], 5, -1, -15)
- items["microphone"] = place([tube([(0, 6, 0), (0, -1, 0)], 1.8, "#27272a"),
- cyl((0, -1.2, 0), 1.4, 1.8, 1, "#3f3f46"), sphere((0, -3.6, 0), 2.6, "#a1a1aa")],
- 4, 0, 12)
- items["ice_cream"] = [cyl((4, 2.4, 0), 0, 2.8, 7, "#d6a15c"), sphere((4, -2, 0), 3, PINK),
- sphere((4, -5.4, 0), 2.6, "#86efac"), sphere((4, -8.4, 0.4), 1, "#dc2626")]
- return items
+def face_items():
+ lens = [(-8.6, -2.7), (-1.4, -2.7), (-1.6, 1.2), (-3.0, 2.9), (-7.0, 2.9), (-8.4, 1.2)]
+ return {"sunglasses": [
+ poly(lens, "#14151a", z=0.9, d=1.0, smooth=False),
+ poly([(-x, y) for x, y in reversed(lens)], "#14151a", z=0.9, d=1.0),
+ tube([(-9.2, -2.7, 1.2), (9.2, -2.7, 1.2)], 1.3, "#14151a"),
+ tube([(-1.5, -1.4, 1.1), (0, -2.0, 1.1), (1.5, -1.4, 1.1)], 0.9, "#14151a", smooth=True),
+ *both_sides([tube([(-9.0, -2.4, 0.8), (-10.6, -2.2, 0)], 0.9, "#14151a")], 0),
+ tube([(-7.0, -1.4, 1.6), (-5.6, 0.9, 1.6)], 0.7, "#5b5f6e", only="2d"),
+ tube([(-5.4, -1.6, 1.6), (-4.8, -0.6, 1.6)], 0.5, "#5b5f6e", only="2d"),
+ tube([(2.2, -1.4, 1.6), (3.6, 0.9, 1.6)], 0.7, "#5b5f6e", only="2d"),
+ ]}
+
+
+def mouth_items():
+ return {"cigar": [
+ tube([(0.4, 0, 0.8), (9.6, 2.2, 1.4)], 2.8, "#7b4a28"),
+ tube([(0.4, 0, 0.82), (1.5, 0.27, 0.86)], 2.85, "#5a3519"),
+ tube([(2.6, 0.52, 0.9), (3.8, 0.82, 0.95)], 3.0, GOLD),
+ tube([(3.0, 0.62, 0.92), (3.4, 0.72, 0.94)], 3.05, BURGUNDY),
+ tube([(9.6, 2.2, 1.4), (10.9, 2.5, 1.45)], 2.75, "#a3a3a3"),
+ tube([(10.9, 2.5, 1.45), (11.3, 2.6, 1.47)], 2.55, "#ff6a1a", glow=True),
+ tube([(11.8, 1.3, 1.5), (13.4, -1.4, 1.6), (11.9, -4.4, 1.7), (13.8, -7.6, 1.8)], 0.8, "#d6d8de", smooth=True),
+ tube([(12.8, -0.6, 1.5), (14.6, -2.4, 1.6), (14.0, -4.8, 1.7)], 0.55, "#d6d8de", smooth=True),
+ ]}
# --- bounds -------------------------------------------------------------------
@@ -472,7 +346,7 @@ def held_items():
def outline_2d(part):
"""Approximate the part's front projection as points, for the symbol viewBox."""
t = part["t"]
- if t == "region":
+ if t in ("region", "rim"):
return []
if t in ("poly",):
return [tuple(p) for p in part["pts"]]
@@ -516,7 +390,6 @@ def rounded(value):
return {k: rounded(v) for k, v in value.items()}
return value
-
def main():
outlines = json.loads(OUTLINES.read_text(encoding="utf-8"))
shapes = {}
@@ -526,21 +399,20 @@ def main():
face_k = FACE_SCALE.get(name, 1)
shapes[name] = {
"top": round(min(ys), 3), "bottom": round(max(ys), 3), "eyeY": eye,
- "anchors": {**anchors, "face": [20, eye, face_k], "mouth": [20, eye + MOUTH_DROP * face_k, round(face_k * MOUTH_BOOST, 3)],
- "held": [*anchors["held"][:2], round(anchors["held"][2] * HELD_BOOST, 3)],
- "outfit": anchors["neck"]},
+ "anchors": {**anchors, "neck": NECK[name], "outfit": NECK[name], "face": [20, eye, face_k],
+ "mouth": [20, eye + MOUTH_DROP * face_k, round(face_k * MOUTH_BOOST, 3)],
+ "held": [*anchors["held"][:2], round(anchors["held"][2] * HELD_BOOST, 3)]},
}
- groups = {"head": head_items(), "face": face_items(), "mouth": mouth_items(), "neck": neck_items(),
- "outfit": outfit_items(), "back": back_items(), "held": held_items()}
+ groups = {"outfit": outfit_items(), "head": head_items(), "face": face_items(), "mouth": mouth_items()}
items = []
- for slot in ["head", "face", "mouth", "neck", "outfit", "back", "held"]:
- for item_id, parts in groups[slot].items():
- items.append({"id": item_id, "slot": slot, "bounds": bounds(parts),
- "regions": any(p["t"] == "region" for p in parts), "parts": parts})
+ for slot, group in groups.items():
+ for item_id, parts in group.items():
+ items.append({"id": item_id, "slot": slot, "scale": ITEM_SCALE.get(item_id, 1), "bounds": bounds(parts),
+ "regions": any(p["t"] in ("region", "rim") for p in parts), "parts": parts})
ids = [item["id"] for item in items]
assert len(ids) == len(set(ids)), "accessory ids must be unique"
- catalog = {"schema": 1, "slots": SLOTS, "slotDepth": SLOT_DEPTH, "frontDepthM": 0.25, "shapes": shapes,
- "items": items}
+ catalog = {"schema": 2, "slots": SLOTS, "slotDepth": SLOT_DEPTH, "slotFlatShift": SLOT_FLAT_SHIFT,
+ "frontDepthM": 0.25, "shapes": shapes, "items": items}
OUTPUT.write_text(json.dumps(rounded(catalog), separators=(",", ":")) + "\n", encoding="utf-8")
print(f"{len(items)} accessories -> {OUTPUT.relative_to(ROOT)}")