Text-GPT-p5 is an online editor that turns plain-English prompts into working p5.js code using the GPT-4o-mini model, then renders the result on a built-in canvas.
How it works
Describe the scene or effect you want (for example, a flocking animation or radial lines on mouse click). The tool generates a p5.js sketch and immediately shows the output in the browser, making it easy to iterate on both the prompt and the code.
Who it’s for
Text-GPT-p5 is useful for:
- Beginners learning p5.js and creative coding
- Artists exploring generative graphics and animation
- Teachers and students who want a clear link between a prompt and the resulting code
Built-in examples
The service includes ready-made prompts you can run and modify, such as:
- Conway’s Game of Life
- 2D flocking animation
- 3D shapes
- Gravity balls
- Color noise
- “Zen ripples” and other generative scenes

