Vigyata.AI
Is this your channel?

I asked GPT-4 to code an ART Masterpiece

9.3K views· 347 likes· 9:37· Mar 17, 2023

🛍️ Products Mentioned (3)

GPT4 by OpenAI is becoming renowned for how creative it can be. It's fantastic at writing text, but how well does it cope with coding art? I put it to the test using the p5.js JavaScript library. INQUIRIES AND COLLABORATIONS ► grebowskifilip@gmail.com MY INFLUENCER MARKETING AGENCY ► https://mensoi.com Join my Newsletter ➡ https://shop.developerfilip.com/sign-up 🔥 Follow me on Twitter ► https://www.twitter.com/developerfilip Follow me on Instagram ► https://www.instagram.com/developerfilip Check me out on GitHub ► https://github.com/FilipGrebowski Music by @epidemicsound #developer #gpt4 #openai

About This Video

In this video I put GPT-4’s creative coding skills to the test with p5.js, and honestly… I didn’t expect it to be this good. I started simple with the exact same prompt I used in my older ChatGPT-3 video: “code a sunset in p5.js.” This time the output was immediately more usable—cleaner code, more detail, and no instant syntax pain. When I ran it, I got a proper gradient sky and a moving sun (even if it wasn’t moving how I imagined at first), which already felt like a huge jump. Then I pushed it harder. I asked for a tree, and GPT-4 generated a recursive branching structure with leaves that actually looked like a tree—not just basic shapes. From there I told it to add wind movement and make it more realistic, and it delivered: wind force, changing direction, branches reacting, the whole thing moving in a way that felt alive. I escalated again—rain and thunder—and it got even crazier. Finally, I asked it to code a fully playable Snake game in p5.js, and it worked flawlessly with key controls. My big takeaway: for creative web dev, this is a real shift—faster iteration, higher quality starting points, and honestly kind of mind-blowing to watch in real time.

Frequently Asked Questions

🎬 More from Developer Filip