Nebular Spiral Symphony - Interactive p5.js Generative Art
From Wikiprompt, the free prompt encyclopedia
Nebular Spiral Symphony - Interactive p5.js Generative Art A comprehensive JSON prompt for generating an interactive p5.js sketch with a spiral particle system and procedural ambient audio, including performance optimizations and user interaction.
Prompt ContentSave
π
{
"prompt_type": "generative_art_sketch",
"title": "Nebular Spiral Symphony",
"summary": "Create an interactive p5.js (v1.4.0) + p5.sound sketch that renders a luminous, spiral-wave star-field while generating a procedural ambient soundtrack. Visuals use polar-coordinate particle motion with Perlin-noise perturbation; audio layers include slowly evolving oscillators and cosmic wind noise. Mouse / touch toggles audio and briefly accelerates the swirl.",
"libraries": {
"p5": "https://t.co/mzM1LdOLYV",
"p5_sound": "https://t.co/CXjbTYE3pY"
},
"canvas": {
"create": "createCanvas(windowWidth, windowHeight)",
"pixelDensity": 2,
"colorMode": "HSB,360,100,100,100",
"blendCycle": [
{ "mode": "BLEND", "fadeRect": { "fill": [0,0,0,4] } },
{ "mode": "ADD", "draw": "particles" }
]
},
"flow_field": {
"type": "polar_spiral",
"particles": {
"count": { "desktop": 1000, "mobile": 600 },
"size": [2, 5],
"physics": { "maxSpeed": 2.5, "forceMult": 0.12 },
"initialPosition": "random(radius<min(width,height)/2)",
"motion": {
"radiusIncrement": 0.15,
"angleIncrement": 0.04,
"noiseScale": 0.003,
"octaves": 2,
"zDrift": "zOff += 0.003 + sin(frameCount*0.0008)*0.001"
}
}
},
"color": {
"palette": "triadic",
"baseHue": "(frameCount*0.07)%360",
"scheme": "h, h+120, h+240",
"saturation": 85,
"value": 100,
"alpha": 18
},
"audio": {
"oscillators": [
{ "wave": "sine", "note": "C4", "amp": 0.05, "pan": -0.3 },
{ "wave": "triangle", "note": "E4", "amp": 0.05, "pan": 0.0 },
{ "wave": "sine", "note": "G4", "amp": 0.05, "pan": 0.3 }
],
"noiseBed": { "type": "pink", "amp": 0.03 },
"effects": { "reverb": { "time": 6, "decay": 5 } },
"pattern": "every 5 seconds randomly retune all oscillators within C-major triad Β±1 octave, rampFrequency 2 s"
},
"interactivity": {
"mousePressed": {
"toggle": "audioContext",
"swirlBoost": { "factor": 2.0, "durationFrames": 120 }
},
"touchStarted": "alias mousePressed"
},
"utilities": {
"edgeHandling": "wrapPolar (if radius>maxR reset radius=0)",
"windowResized": "resizeCanvas & redistribute particle radius uniformly"
},
"performance": {
"flowCache": { "enabled": true, "grid": [48, 30] },
"adaptiveParticles": "use mobile count when pixelDensity()<2"
},
"comments": [
"Triadic hue rotation yields harmonious colour cycling.",
"Per-particle alpha 18 + additive blend β soft bloom.",
"Audio reverb + pink noise provide atmospheric depth.",
"SwirlBoost gives users a momentary burst of energy.",
"Flow cache keeps noise calls under ~35 k / frame."
]
}
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with creative. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: creative Prompts
- Source: https://x.com/IamEmily2050/status/1953791790190146021
Talk
0 comments