Vibe Coding in Practice: Remixing a Generative Bio-Art Example
Modifying existing code is one of the most effective ways to vibe code. But the starting point doesn't have to be code; it can be any "deterministic, computable and understandable" content.
Translated by AI
The first vibe coding paradigm in the earlier article noted that modifying existing code is one of the most effective ways to vibe code. But the starting point doesn’t have to be code. It can be any “deterministic, computable and understandable” content, such as formulas or structured text.
Getting started
For example, @yuruyurau, an artist who makes generative bio-forms, has been very popular on X recently. Each post is an animation of the work plus a short piece of core code, like this:

This code describes how a brush draws in Processing / p5.js (a tool for visual experiments and creative coding), and it reproduces the video. But it can’t run as is, because it’s missing a lot of basic setup code (canvas size, frame rate, variable definitions and so on).
Let’s try the code from this piece:
>>a=(x,y,d=mag(k=(4+sin(y*2-t)*3)*cos(x/29),e=y/8-13))=>point((q=3*sin(k*2)+.3/k+sin(y/25)*k*(9+4*sin(e*9-d*3+t*2)))+30*cos(c=d-t)+200,q*sin(c)+d*39-220) t=0,draw=$=>{t||createCanvas(w=400,w);background(9).stroke(w,96);for(t+=PI/240,i=1e4;i--;)a(i,i/235)}//[#つぶやきProcessing]
Open any AI coding tool and switch on agent mode if it has one (depending on the tool, you may need to open an empty folder and create a blank file first). I used VS Code + Copilot (because a student account gets a free year of Claude 4). Enter:
Please create a visualisation web page from the following code:
>>a=(x,y,d=mag(k=(4+sin(y*2-t)*3)*cos(x/29),e=y/8-13))=>point((q=3*sin(k*2)+.3/k+sin(y/25)*k*(9+4*sin(e*9-d*3+t*2)))+30*cos(c=d-t)+200,q*sin(c)+d*39-220) t=0,draw=$=>{t||createCanvas(w=400,w);background(9).stroke(w,96);for(t+=PI/240,i=1e4;i--;)a(i,i/235)}//[#つぶやきProcessing]
Using VS Code + Copilot as the example:
-
Start building:


-
As it runs, the AI plans and carries out the steps, and some actions will need your confirmation (such as creating files or installing libraries).

💡
If the AI generates a bare HTML file instead of an app, you can steer it to follow a plan like this:
Create a JavaScript Vite project
Add the p5.js dependency
Convert the provided code into standard p5.js
Build a modern web interface
Configure the build and run tasks
-
The AI coding tool builds every file the project needs in the folder you chose. Usually you just watch and click confirm at the right moments. (That’s for simple projects; for complex ones you need to check every change the AI makes, in case it’s wrong or breaks the existing structure.)

-
When it’s done, the AI reminds you to run the program and preview the result.

💡
If the AI doesn’t run it for you, open a terminal, type
npm run dev, and visit the localhost address. To stop it, press Control + C in the terminal. -
The first attempt doesn’t always work. In my case the page was blank and the terminal showed an error:


Finding and fixing errors
- Report the problem back to the AI, and remember to describe exactly what happens and under what circumstances. Here’s what I wrote:
Visiting <http://localhost:3000> shows a blank page, and the terminal shows this error:
* Executing task: npm run dev
> vibe-coding-visualization@1.0.0 dev
> vite
'vite' is not recognized as an internal or external command,
operable program or batch file.
* The terminal process "C:\\Windows\\System32\\cmd.exe /d /c npm run dev" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
-
In the end the AI didn’t seem to fix the Vite start-up problem itself, but it used a “shotgun” approach, trying every option until one worked.

-
Finally, I opened standalone.html in the project folder to preview the virtual creature. The page not only reproduces the animation from the original post; the AI also added some simple UI controls.

Keep developing
Once the first version works, keep talking to the AI to modify the code and add features, for example:
💡
Ask the AI to write a summary of the project files, so you understand what each one does.
Ask it to comment the code line by line, to help you understand it.
Ask it to refine the rendering (if there are jagged edges or other glitches).
Ask it to add controls for adjusting the creature’s motion parameters in real time.
Ask it to change the creature’s form directly…
But don’t give the AI too many problems at once. Asking it to improve or fix one thing at a time makes vibe coding far more likely to succeed.
Here’s the result after improving the rendering:

More generative art examples on biological themes
🗣
Some interesting bio-related coding examples to use as starting points for vibe coding
[p5.js examples]
Game of Life (cellular automaton)
[Advanced] More code-heavy; some programming background recommended