Prompt Interpolation

Reusable meta-prompt that mixes two source prompts according to a ratio n.
In the example we use "lone traveler in red desert at dusk" and "scientist in flooded neon city at night" for the prompt sources. A simple linear interpolation strategy will evolve a prompt from one to the other.
The example shows also that you can assign prompts to variables and give a name to the Meta-Prompt using code>MPname =.
Note that MPname : or MPname() are also accepted.

Meta-Prompt

PA:lone traveler in red desert at dusk.
PB:scientist in flooded neon city at night.
You can easily replace PA & PB definition to interpolate your own prompts. Use the Fixed: tag for parts you don't want to be mutated.


_mpbreed = [META-PROMPT]

Create a new prompt by randomly mixing elements of @PA and @PB.
Proportion n from @PB, (1-n) from @PA.
Keep the result coherent and visually unified.

[/META-PROMPT]


Usage: Evaluate @_mpbreed(n) on 5 instances with n from 0 to 1.
It will generate _mpbreed(0),_mpbreed(0.25),_mpbreed(0.5),_mpbreed(0.75),_mpbreed(100)

Interpolation sequence

n = 0% (pure A)

A lone traveler crossing a vast red desert at dusk, cinematic, hyper-realistic
n=0%
n = 25%

A lone traveler crossing a vast reddish desert at dusk, with subtle neon reflections appearing in distant shallow water pools, cinematic, hyper-realistic
n=25%
n = 50%

A traveler-scientist figure walking through a hybrid landscape where red desert dunes meet flooded neon-lit streets at twilight, cinematic, hyper-realistic
n=50%
n = 75%

A scientist standing in a flooded neon city at night, with remnants of red desert sand and dusk light still visible in the water and sky, cinematic, hyper-realistic
n=75%
n = 100% (pure B)

A scientist standing inside a flooded neon city at night, cinematic, hyper-realistic
n=100%

Next : Background Replacement (intelligent strategy demo)
← Back to index