Function: generateBackground()
> generateBackground(request, options?): Promise<string>
Defined in: src/ai.ts:95
Generate a background image from a developer request, completely hiding prompt engineering.
The image is meant to fill the whole game canvas: its size is read directly from Pixi'VN and included in the prompt, so it never has to be passed manually.
Parameters
request
string
Natural language description of the background to generate.
options?
BackgroundImageGenerateOptions
Options controlling which context gets included in the prompt.
Returns
Promise<string>
The generated image, as a data URI, ready to use directly as a Pixi'VN image source.