1 / 2
typescript経由
interface ImageDescription { characters: { person: { age: string; gender: string; expression: string; emotion: string; pose: string; outfit: { top: string; bottom: string; footwear: string; accessories: string[]; colorScheme: string[]; }; hair: { color: string; length: string; style: string; accessories: string[]; }; eyes: string; position: string; }; }[]; background: { setting: string; objects: string[]; colorPalette: string[]; }; style: string; overallMood: string; } const imageDescription: ImageDescription = { characters: [ { person: { age: \"young adult\", gender: \"female\", expression: \"calm\", emotion: \"serene\", pose: \"sitting and leaning forward with one hand on the table\", outfit: { top: \"long-sleeve oversized shirt\", bottom: \"flowy skirt\", footwear: \"traditional sandals\", accessories: [\"rose flower hairpin\", \"flower crown\"], colorScheme: [\"pink\", \"yellow\", \"light brown\"], }, hair: { color: \"silver\", length: \"long\", style: \"straight and flowing\", accessories: [\"rose flowers\"], }, eyes: \"closed\", position: \"foreground\", }, }, ], background: { setting: \"interior of a quaint room with a cozy atmosphere\", objects: [ \"small round table\", \"vase with pink roses\", \"wooden cabinets\", \"window with sunlight\", \"potted plants\", ], colorPalette: [\"pastel pink\", \"light blue\", \"soft yellow\"], }, style: \"illustration with delicate lines and soft pastel colors\", overallMood: \"peaceful and nostalgic\", };