Monday, 8 December 2025

Gemini Coding Revisited


I continued to experiment with Vibe Coding in Google's Gemini 3 (like I just did with animated lines and voxels this month):

I asked Gemini 3 to write a program with the simple instructions below, and uploaded it to use in a blog page -- STRAIGHT and CURVED:

INSTRUCTIONS

"Make a simple drawing program in the browser where all the straight lines go to infinity (the edge of a box), and all the curved lines make a circle."

A drawing from the simple program


It worked, sorta. After three tries it always showed the lines, but NOT the circles that I drew -- yet both the lines and the circles were in the images when I downloaded them. 

Moreover, apparently half of the screen was hidden, when I tried to use the program in the browser.




PREVIOUS TRY

These are the same instructions I gave to DEEP SEEK back in February 2025, to write an online computer drawing program.  I did this on Hugging Face in a program called akhaliq/anycoder (which looks very different now), and created the Drawing Program:

I just drew this in the old program

And that program has the same issue, as half of the screen was hidden, when I tried to use the program in the browser.

In February I managed to draw some line images, which I stacked into an animated GIF, as my ultimate goal was to make an animation of lines eventually:

Ultimately I want the lines to move too





GOOGLE SEARCH

I subsequently entered the same request into Google Search, wondering if anyone else has created a program to do similar things.  

"Make a simple drawing program in the browser where all the straight lines go to infinity (the edge of a box), and all the curved lines make a circle."

Instead, Google Search generated the CODE for another program, which I made into a webpage -- Drawing Program from Google Search:



When I hit "Dive deeper in AI Mode" it takes me to Gemini Deep Dive.  However all my "thinking" hours had expired, so I believe that I got a lesser version of AI:





Following the instructions, and putting "index.html" and "drawing.js" in the same folder -- I could open that program locally in my Chrome browser. However it only drew one circle, or line, at a time...and erased that before the next circle or line was drawn. In other words, I could not draw a circle and line composition:

Google Search gave me a different program,
which I had to run locally on my laptop,
and drew only one circle or line at a time



No comments:

Post a Comment

Note: only a member of this blog may post a comment.