Certainly! Below is a comprehensive pseudocode-style format that builds image prompts as you described. It allows user input for each parameter or randomly selects defaults if input is not provided. Then, it generates 6 different system versions with slightly varied structures and stylistic parameters added.
Common Utilities
code Copy code
FUNCTION getUserOrRandom(inputPrompt, listOfOptions):
PRINT inputPrompt + " (leave blank for random): "
userInput = READ_LINE()
IF userInput IS NOT EMPTY:
RETURN userInput
ELSE:
RETURN RANDOM_CHOICE(listOfOptions)
FUNCTION randomChoice(list): // shorthand for RANDOM_CHOICE
RETURN RANDOM_CHOICE(list)
Parameter Lists (examples)
code Copy code
poses = ["standing", "sitting", "running", "jumping", "lying down"]
cameraShots = ["close-up", "wide shot", "medium shot", "bird's eye view", "over the shoulder"]
moods = ["joyful", "melancholic", "energetic", "serene", "mysterious"]
subjects = ["girl", "boy", "man", "woman", "child"]
attires = ["dress", "suit", "casual wear", "armor", "vintage clothes"]
whimsicalActivities = ["dancing with butterflies", "painting invisible art", "chasing shadows", "whispering to trees", "balancing on clouds"]
places = ["forest", "cityscape", "beach", "mountain", "desert"]
photoStyles = ["high contrast", "soft focus", "vintage", "cinematic", "documentary"]
filmStocks = ["Kodak Portra", "Fujifilm Velvia", "Ilford HP5", "AgfaPhoto Vista", "Cinestill 800T"]
technicalKeywords = ["shallow depth of field", "bokeh", "long exposure", "high dynamic range", "macro"]
relatedPlaces = ["distant mountains", "a calm lake", "a bustling town", "ancient ruins", "towering skyscrapers"]
settings = ["foggy", "sunset", "stormy", "bright daylight", "twilight"]
# For stylistic parameters added in versions, can include colors, lighting, etc.
colors = ["vibrant reds", "muted blues", "pastel pinks", "deep greens", "golden hues"]
lightingStyles = ["rim lighting", "soft diffused light", "harsh shadows", "backlit", "natural sunlight"]
Version 1: Basic Structure + Random Selection + Simple Stylistic Tags
code Copy code
FUNCTION generatePromptV1():
pose = getUserOrRandom("Enter a pose", poses)
shot1 = getUserOrRandom("Enter first camera shot", cameraShots)
mood1 = getUserOrRandom("Enter first mood", moods)
mood2 = getUserOrRandom("Enter second mood", moods)
subject = getUserOrRandom("Enter subject", subjects)
attire = getUserOrRandom("Enter attire", attires)
activity = getUserOrRandom("Enter whimsical activity", whimsicalActivities)
shot2 = getUserOrRandom("Enter second camera shot", cameraShots)
place1 = getUserOrRandom("Enter first place", places)
mood3 = getUserOrRandom("Enter third mood", moods)
setting = getUserOrRandom("Enter setting", settings)
mood4 = getUserOrRandom("Enter fourth mood", moods)
place2 = getUserOrRandom("Enter second place", places)
relatedPlace = getUserOrRandom("Enter related place in the background", relatedPlaces)
style1 = getUserOrRandom("Enter first photo style", photoStyles)
style2 = getUserOrRandom("Enter second photo style", photoStyles)
film1 = getUserOrRandom("Enter first film stock brand", filmStocks)
film2 = getUserOrRandom("Enter second film stock brand", filmStocks)
tech1 = getUserOrRandom("Enter first technical keyword", technicalKeywords)
tech2 = getUserOrRandom("Enter second technical keyword", technicalKeywords)
PROMPT = pose + " pose | " + shot1 + ": " + mood1 + "," + mood2 + ", " + subject + " wearing a " + attire + "; " + activity + " | " +
shot2 + ": " + place1 + " " + mood3 + ", " + setting + ", " + place2 + " " + mood4 + " + " + relatedPlace + " in the background | " +
style1 + ", " + style2 + ", " + film1 + ", " + film2 + ", " + tech1 + ", " + tech2 + "."
RETURN PROMPT
# Example usage:
PRINT "Example prompts V1:"
PRINT generatePromptV1()
PRINT generatePromptV1()
Version 2: Reverse Order + Added Color Palette + Lighting
code Copy code
FUNCTION generatePromptV2():
# reuse same getUserOrRandom with same lists
# input
lighting = getUserOrRandom("Enter lighting style", lightingStyles)
colorPalette = getUserOrRandom("Enter color palette", colors)
pose = getUserOrRandom("Enter a pose", poses)
shot1 = getUserOrRandom("Enter first camera shot", cameraShots)
mood1 = getUserOrRandom("Enter first mood", moods)
mood2 = getUserOrRandom("Enter second mood", moods)
subject = getUserOrRandom("Enter subject", subjects)
attire = getUserOrRandom("Enter attire", attires)
activity = getUserOrRandom("Enter whimsical activity", whimsicalActivities)
shot2 = getUserOrRandom("Enter second camera shot", cameraShots)
place1 = getUserOrRandom("Enter first place", places)
mood3 = getUserOrRandom("Enter third mood", moods)
setting = getUserOrRandom("Enter setting", settings)
mood4 = getUserOrRandom("Enter fourth mood", moods)
place2 = getUserOrRandom("Enter second place", places)
relatedPlace = getUserOrRandom("Enter related place in the background", relatedPlaces)
film1 = getUserOrRandom("Enter first film stock brand", filmStocks)
film2 = getUserOrRandom("Enter second film stock brand", filmStocks)
style1 = getUserOrRandom("Enter first photo style", photoStyles)
style2 = getUserOrRandom("Enter second photo style", photoStyles)
tech1 = getUserOrRandom("Enter first technical keyword", technicalKeywords)
tech2 = getUserOrRandom("Enter second technical keyword", technicalKeywords)
PROMPT = lighting + ", " + colorPalette + " | " +
style1 + " and " + style2 + ", film stocks " + film1 + " & " + film2 + ", " + tech1 + ", " + tech2 + " | " +
shot2 + ": " + place1 + " (" + mood3 + "), " + setting + ", " + place2 + " (" + mood4 + "), " + relatedPlace + " in the background | " +
shot1 + ": " + mood1 + ", " + mood2 + ", " + subject + " wearing a " + attire + "; " + activity + " | " +
pose + " pose."
RETURN PROMPT
# Examples for V2
PRINT "Example prompts V2:"
PRINT generatePromptV2()
PRINT generatePromptV2()
Version 3: Nested parentheses and more formal structuring
code Copy code
FUNCTION generatePromptV3():
pose = getUserOrRandom("Enter a pose", poses)
shot1 = getUserOrRandom("Enter first camera shot", cameraShots)
mood1 = getUserOrRandom("Enter first mood", moods)
mood2 = getUserOrRandom("Enter second mood", moods)
subject = getUserOrRandom("Enter subject", subjects)
attire = getUserOrRandom("Enter attire", attires)
activity = getUserOrRandom("Enter whimsical activity", whimsicalActivities)
shot2 = getUserOrRandom("Enter second camera shot", cameraShots)
place1 = getUserOrRandom("Enter first place", places)
mood3 = getUserOrRandom("Enter third mood", moods)
setting = getUserOrRandom("Enter setting", settings)
mood4 = getUserOrRandom("Enter fourth mood", moods)
place2 = getUserOrRandom("Enter second place", places)
relatedPlace = getUserOrRandom("Enter related place in the background", relatedPlaces)
style1 = getUserOrRandom("Enter first photo style", photoStyles)
style2 = getUserOrRandom("Enter second photo style", photoStyles)
film1 = getUserOrRandom("Enter first film stock brand", filmStocks)
film2 = getUserOrRandom("Enter second film stock brand", filmStocks)
tech1 = getUserOrRandom("Enter first technical keyword", technicalKeywords)
tech2 = getUserOrRandom("Enter second technical keyword", technicalKeywords)
colorPalette = getUserOrRandom("Enter color palette", colors)
lighting = getUserOrRandom("Enter lighting style", lightingStyles)
PROMPT = pose + " pose | " +
shot1 + ": (" + mood1 + ", " + mood2 + "), " + subject + " (wearing a " + attire + ") engaging in (" + activity + ") | " +
shot2 + ": [" + place1 + " (" + mood3 + "), " + setting + ", " + place2 + " (" + mood4 + "), " + relatedPlace + " in background] | " +
"Styles: {" + style1 + ", " + style2 + "}, Films: {" + film1 + ", " + film2 + "}, Technicals: {" + tech1 + ", " + tech2 + "} | " +
"Palette: " + colorPalette + ", Lighting: " + lighting + "."
RETURN PROMPT
# Examples V3
PRINT "Example prompts V3:"
PRINT generatePromptV3()
PRINT generatePromptV3()
Version 4: Using slashes and abbreviations, more compact
code Copy code
FUNCTION generatePromptV4():
pose = getUserOrRandom("Enter a pose", poses)
shot1 = getUserOrRandom("Enter first camera shot", cameraShots)
mood1 = getUserOrRandom("Enter first mood", moods)
mood2 = getUserOrRandom("Enter second mood", moods)
subject = getUserOrRandom("Enter subject", subjects)
attire = getUserOrRandom("Enter attire", attires)
activity = getUserOrRandom("Enter whimsical activity", whimsicalActivities)
shot2 = getUserOrRandom("Enter second camera shot", cameraShots)
place1 = getUserOrRandom("Enter first place", places)
mood3 = getUserOrRandom("Enter third mood", moods)
setting = getUserOrRandom("Enter setting", settings)
mood4 = getUserOrRandom("Enter fourth mood", moods)
place2 = getUserOrRandom("Enter second place", places)
relatedPlace = getUserOrRandom("Enter related place in the background", relatedPlaces)
style1 = getUserOrRandom("Enter first photo style", photoStyles)
style2 = getUserOrRandom("Enter second photo style", photoStyles)
film1 = getUserOrRandom("Enter first film stock brand", filmStocks)
film2 = getUserOrRandom("Enter second film stock brand", filmStocks)
tech1 = getUserOrRandom("Enter first technical keyword", technicalKeywords)
tech2 = getUserOrRandom("Enter second technical keyword", technicalKeywords)
lighting = getUserOrRandom("Enter lighting style", lightingStyles)
colorPalette = getUserOrRandom("Enter color palette", colors)
PROMPT = pose + "/pose | " +
shot1 + "/cam: " + mood1 + "," + mood2 + ", " + subject + "/wearing " + attire + "; " + activity + " / | " +
shot2 + "/cam: " + place1 + " " + mood3 + ", " + setting + ", " + place2 + " " + mood4 + " + " + relatedPlace + " in back / | " +
style1 + "/" + style2 + ", films " + film1 + "/" + film2 + ", techs " + tech1 + "/" + tech2 + ", light " + lighting + ", colors " + colorPalette + "."
RETURN PROMPT
# Examples V4
PRINT "Example prompts V4:"
PRINT generatePromptV4()
PRINT generatePromptV4()
Version 5: Using bullet points and newline separation (for clarity)
code Copy code
FUNCTION generatePromptV5():
# gather inputs
pose = getUserOrRandom("Enter a pose", poses)
shot1 = getUserOrRandom("Enter first camera shot", cameraShots)
mood1 = getUserOrRandom("Enter first mood", moods)
mood2 = getUserOrRandom("Enter second mood", moods)
subject = getUserOrRandom("Enter subject", subjects)
attire = getUserOrRandom("Enter attire", attires)
activity = getUserOrRandom("Enter whimsical activity", whimsicalActivities)
shot2 = getUserOrRandom("Enter second camera shot", cameraShots)
place1 = getUserOrRandom("Enter first place", places)
mood3 = getUserOrRandom("Enter third mood", moods)
setting = getUserOrRandom("Enter setting", settings)
mood4 = getUserOrRandom("Enter fourth mood", moods)
place2 = getUserOrRandom("Enter second place", places)
relatedPlace = getUserOrRandom("Enter related place in the background", relatedPlaces)
style1 = getUserOrRandom("Enter first photo style", photoStyles)
style2 = getUserOrRandom("Enter second photo style", photoStyles)
film1 = getUserOrRandom("Enter first film stock brand", filmStocks)
film2 = getUserOrRandom("Enter second film stock brand", filmStocks)
tech1 = getUserOrRandom("Enter first technical keyword", technicalKeywords)
tech2 = getUserOrRandom("Enter second technical keyword", technicalKeywords)
lighting = getUserOrRandom("Enter lighting style", lightingStyles)
colorPalette = getUserOrRandom("Enter color palette", colors)
PROMPT = "- Pose: " + pose + " pose\n" +
"- Camera Shot 1: " + shot1 + "\n" +
" Moods: " + mood1 + ", " + mood2 + "\n" +
" Subject: " + subject + " wearing a " + attire + "\n" +
" Activity: " + activity + "\n" +
"- Camera Shot 2: " + shot2 + "\n" +
" Place: " + place1 + " (" + mood3 + "), " + setting + ", " + place2 + " (" + mood4 + ")\n" +
" Background: " + relatedPlace + "\n" +
"- Photo Styles: " + style1 + ", " + style2 + "\n" +
"- Film Stocks: " + film1 + ", " + film2 + "\n" +
"- Technical Keywords: " + tech1 + ", " + tech2 + "\n" +
"- Lighting: " + lighting + "\n" +
"- Color Palette: " + colorPalette
RETURN PROMPT
# Examples V5
PRINT "Example prompts V5:"
PRINT generatePromptV5()
PRINT generatePromptV5()
Version 6: Creative hybrid with added 'emotion' and 'texture' parameters
code Copy code
emotions = ["nostalgic", "hopeful", "anxious", "content", "wild"]
textures = ["grainy", "smooth", "rough", "silky", "crisp"]
FUNCTION generatePromptV6():
pose = getUserOrRandom("Enter a pose", poses)
shot1 = getUserOrRandom("Enter first camera shot", cameraShots)
mood1 = getUserOrRandom("Enter first mood", moods)
mood2 = getUserOrRandom("Enter second mood", moods)
subject = getUserOrRandom("Enter subject", subjects)
attire = getUserOrRandom("Enter attire", attires)
activity = getUserOrRandom("Enter whimsical activity", whimsicalActivities)
shot2 = getUserOrRandom("Enter second camera shot", cameraShots)
place1 = getUserOrRandom("Enter first place", places)
mood3 = getUserOrRandom("Enter third mood", moods)
setting = getUserOrRandom("Enter setting", settings)
mood4 = getUserOrRandom("Enter fourth mood", moods)
place2 = getUserOrRandom("Enter second place", places)
relatedPlace = getUserOrRandom("Enter related place in the background", relatedPlaces)
style1 = getUserOrRandom("Enter first photo style", photoStyles)
style2 = getUserOrRandom("Enter second photo style", photoStyles)
film1 = getUserOrRandom("Enter first film stock brand", filmStocks)
film2 = getUserOrRandom("Enter second film stock brand", filmStocks)
tech1 = getUserOrRandom("Enter first technical keyword", technicalKeywords)
tech2 = getUserOrRandom("Enter second technical keyword", technicalKeywords)
lighting = getUserOrRandom("Enter lighting style", lightingStyles)
colorPalette = getUserOrRandom("Enter color palette", colors)
emotion = getUserOrRandom("Enter dominant emotion", emotions)
texture = getUserOrRandom("Enter texture style", textures)
PROMPT = "[Pose: " + pose + "] | " +
shot1 + " shot: moods(" + mood1 + ", " + mood2 + "), " + subject + " wearing a " + attire + "; activity(" + activity + ") | " +
shot2 + " shot: location(" + place1 + ", " + mood3 + "), setting(" + setting + "), location(" + place2 + ", " + mood4 + ") + background(" + relatedPlace + ") | " +
"styles(" + style1 + ", " + style2 + "), films(" + film1 + ", " + film2 + "), tech(" + tech1 + ", " + tech2 + ") | " +
"lighting: " + lighting + ", colors: " + colorPalette + ", emotion: " + emotion + ", texture: " + texture + "."
RETURN PROMPT
# Examples V6
PRINT "Example prompts V6:"
PRINT generatePromptV6()
PRINT generatePromptV6()
Summary:
This approach:
Provides 6 different structural styles for prompt generation.
Asks user input for each parameter; if input is blank, random from example lists chosen.
Adds stylistic parameters differently in each version for variation.
Shows two example prompt outputs per version.
Let me know if you want this implemented in any programming language or expanded further!