Painting 1990s anime scenes in Python (fofr.ai)

16 points by magoghm 3 hours ago

andai 42 minutes 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! https://files.catbox.moe/jygbpb.jpg

Wish I had asked it to save its progress along the way, it was interesting to see it refining it. It used up 75% of my weekly (free) Gemini quota for one thing! I think the vision thing uses a lot of tokens.

Can someone else try it with GPT or Claude? :) Prompt is at bottom of post.

vunderba 13 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

andai 7 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:

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.)

LegitShady 13 minutes ago

no painting was involved

PostOnce an hour 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.

andai 38 minutes 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.