Painting 1990s anime scenes in Python
17 points by magoghm 3 hours ago | 7 comments

andai 2 hours ago
That's insane. I remember a few months ago being amazed they could make a SVG of a stickman.

I'd love to see if it works with other models too.

I'm curious how they arrived at this, e.g. did Gemini come up with the whole workflow on its own?

Edit: Found the author's x account. Lots of cool art experiments there along similar lines, including animated ones!

https://x.com/fofrAI

---

Edit 2: Gave it a try myself!

Gemini 4 Hydrogen: https://files.catbox.moe/jygbpb.jpg

A >100kb python file, used up all my free usage for the week.

GPT-6-Luna: https://files.catbox.moe/uwytgw.jpg

GPT-5.6-Terra: https://files.catbox.moe/159eus.jpg

Luna was 5kb, Terra's was 10kb. So Gemini's code was >10x longer.

Can anyone try with claude, or bigger GPT models?

reply
vunderba 37 minutes ago
Yes, there have been many attempts at doing this [1] - saw a recent one where it modeled physical brushes to simulate impressionism.

In my testing, while the results can come out okay, one of the biggest issues is that unlike a more conventional generative model, LLMs can take half an hour to an hour just to generate a single image and as you said absolutely destroy your token usage.

[1] - https://github.com/cloveric/claude-drawing-skill

reply
andai 31 minutes ago
It does give you a Python file you can run for free to generate more art. Here's the code for the treehouse (Gemini 4 Hydrogen):

https://pastebin.com/be0ga75B

> Stage 2 — Unified 3D Sun Visibility Solver (6-step Height Refinement) & Water

lol

I'm kind of mind blown by what it's doing here, I wonder what they trained this on.

Although, it generates approximately the same thing every time though. I'm gonna see what happens if I vary the seed.

Edit: Yeah, the seed controls details (grass, reflections, etc.)

reply
vunderba 3 minutes ago
Yeah, I think you're right. I've only glanced at it but I imagine you'll get pretty much the same thing if you rerun it. It might come out a little different depending on how much RNG is involved in the python itself, but it'll probably be mostly the same.

In response to what you said earlier aka will the resulting output change drastically based on the model?

In my experience, big time. I recently built something similar: a custom drawing language [1] designed to be piloted by LLMs to create scenes in the style of old-school EGA DOS adventure games, with a restricted palette and everything else. It's much faster than this since its obviously a much more constrained domain, but the smaller the model you use, the rougher the images come out.

Comparisons of a EGA steam locomotive using Deepseek, Kimi, Neon, and Qwen 3. [2]

[1] - https://kq-styles.specr.net

[2] - https://imgpb.com/vTZqPpr

reply
LegitShady 37 minutes ago
no painting was involved
reply
PostOnce 2 hours ago
A post written by no-one to tell me nothing.

You can ask Gemini to do stuff for you? You don't say.

> Work by fofr's agents

> This post was written by an agent using Gemini 4 Neon. It was reviewed and published by fofr.

reply
andai 2 hours ago
(Not the author) I was struggling to make sense of it, so I asked GPT to decipher the post for me.

Basically, the LLM writes a Python program which paints a picture, then it looks at the picture, and adjusts the program. Repeat until it looks good. The process involves textures, lighting, measurements, perspective projection, etc.

There's a prompt at the bottom you can use to try it yourself. I think it works with any LLM, though the results would probably be quite different.

reply