Build a single-file 3D Universe Simulator with Canvas and JS
From Wikiprompt, the free prompt encyclopedia
Build a single-file 3D Universe Simulator with Canvas and JS A coding prompt that builds a dependency-free single-file 3D universe simulator in vanilla JavaScript, with a custom 3D projection engine, a galaxy of 8,000+ stars, and a black hole.
Related media
Prompt ContentSave
🌐
Overview: Build a production-ready, single-file interactive 3D Universe Simulator using HTML5 Canvas and JavaScript without any external libraries or CDN dependencies.
Key Specifications:
Interface & Search: Full-viewport minimalist glassmorphism interface featuring a top header bar (real-time search engine with autocomplete dropdown, FPS counter, active target indicator) and a bottom control deck (focus shortcut buttons for Black Hole, Galaxy, Sol System, Terra, Zeus, and a 0x-5x time warp slider). Live search filters celestial targets as you type, automatically panning and zooming the camera to selected targets upon selection.
Graphics & Physics: Custom pure JavaScript 3D projection engine (project(x, y, z)) rendering 8,000+ dynamic spiral galaxy stars with color variations, a central supermassive black hole with an accretion disk and event horizon, and an orbiting planetary solar system with real-time speed adjustments. Includes full mouse controls (drag to orbit/rotate camera, scroll to zoom).
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 coding. 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: coding Prompts
- Source: https://x.com/eyishazyer/status/2079886330667180489
Talk
0 comments