Why AI-Written SVG Can Beat Your Code-Drawn Kit, and How to Close the Gap

Date:

Your code-drawn SVG images are free and repeatable, but next to an LLM writing SVG for the same subject they can look flat. Here is how to find out where, read what the better image does, and build that into your code.

The short answer: A code-drawn SVG kit (Python that draws each scene from building blocks) is cheap and predictable, but it can lose on look to an LLM that writes its own SVG. Run a matched comparison to find out where. In one such test, Gemini (in Antigravity) wrote SVG for six subjects: it tied the kit on two, edged ahead on two, and clearly won chemistry and thermodynamics. Rather than hand those subjects over, treat the loss as a spec: name what the better images do, encode it into the kit as reusable code, and re-run the lost rounds. In that test chemistry became a near-tie and thermodynamics close, and the kit stayed free and repeatable. The method is a loop: let the more inventive author scout what “good” looks like, then encode it into the code you own.

A note on the setup, because it matters: both sides were vector code. Gemini’s images here are SVG it wrote itself, not pixels from an image model; asking it for markup is a coding task, so it didn’t hit the image model’s quota either. That makes the comparison cleaner than “code vs AI art”: same medium, two authors, so every difference is a difference in technique. (When we do want raster images, that’s a separate engine; the case for running both is in Vector vs Diffusion: Why Scaling AI Images Needs Two Engines, and the kit’s method in How to Generate SVG Hero Images with Claude Code.)

Run a matched comparison and score it honestly

A large catalog needs a hero on every page, and a code kit can draw conceptual and science subjects as clean, glowing, layered scenes with no quota and no risk of garbled text. The question to ask is whether it is good enough on those subjects, or merely cheaper. Pick a handful of subjects, give the LLM the same brief the kit gets, and judge the pairs side by side. In the test behind this article, six subjects scored like this:

SubjectVerdict (2026-09-25)
Cybersecurityabout a tie
Cloud & DevOpsabout a tie
Data analyticsslight edge to Gemini
EntrepreneurshipGemini ahead (we later answered it with a new “rocket” metaphor)
Organic chemistryGemini clearly ahead
ThermodynamicsGemini ahead

The two science rounds were the uncomfortable ones. Gemini’s molecule was a believable three-dimensional structure; the kit’s was a flat hexagon. Its thermodynamics image showed energy moving; the kit’s was a lattice that didn’t read. The kit’s science metaphors were emblems, not scenes.

The easy response is to route those subjects elsewhere. But a kit’s properties (zero cost, exact repeatability, structural safety) matter most on exactly the subjects that recur thousands of times. The better question is: what, specifically, is the other author doing that my code isn’t?

Study the winner, encode the technique

A better-looking competitor output is a gift, because it is concrete. You are no longer guessing at “make it richer”; you can name the moves.

A competitor’s better output is a free, concrete brief for what yours is missing.

Reading the winning science images closely, three techniques stood out:

  1. Depth through banding and shading. The strong molecule had atoms of varied size and shading arranged in perspective, joined by bonds that read as three-dimensional.
  2. A process, not a symbol. The strong thermodynamics image had a direction: an ordered, cool region resolving into a hot, energetic one. Something was happening.
  3. No staring core. A single luminous blob in the middle of a frame reads as an eye, a trap both sides hit that day. The fix is asymmetry and direction (the anti-eye rule).

Encode each one into the kit as a deterministic building block, code rather than a one-off drawing, so every future image gets it for free. In the test that meant:

  • The molecule was rebuilt as a tilted, perspective ring of element-colored, gradient-shaded atoms with real bonds and branching groups.
  • The energy scene was rewritten to render a left-to-right process: an ordered cool lattice feeding streamlines of particles into a hot core, order becoming heat. It took two passes: the first rewrite produced a radiant core inside rings, which was better but static, and was itself drifting toward the eye trap.
  • An anti-symmetry rule went into the kit so luminous cores stay off-center and directional.

Every rebuilt scene was render-verified, rasterized headless and checked for a healthy image, because vector art has a nasty failure mode where a broken reference renders pure black while passing every text-based validity check.

Copy the image and you fix one page; encode the technique and you fix every page, for free.

Re-run the lost rounds: before, after, and the target image

Re-run the lost rounds with the same briefs. In the test, the two science rounds came out like this:

A grid comparing hero images for two subjects. Rows: organic chemistry and thermodynamics. Columns: our code kit before the rewrite, our code kit after it, and Gemini's SVG for the same brief. Chemistry: before, a flat hexagon of six atoms; after, a tilted three-dimensional ring with shaded atoms and side groups; Gemini, a richer branched molecule in teal and green. Thermodynamics: before, a block of small cubes beside a pale wedge that does not read as energy; after, a grid of particles streaming left to right into a hot glowing core; Gemini, a lattice of red and gold particles flowing along curved lines into a bright core.
  • Chemistry: from a flat hexagon to a molecule that reads as one. Against Gemini’s version, a near-tie.
  • Thermodynamics: the rewritten scene tells the same order-to-heat story. Gemini’s still has more movement in it (its particles travel along curved paths while ours converge on a core), so we’d call it close, not equal.

With the technique in hand, three more science scenes (a cell/DNA structure, a wireframe geometry scene and light through a prism) came cheaply, and the kit went from 19 to 20 metaphors that day.

Make the comparison a routine

Two subjects are a start, not a finish. In the same test, a wider calibration followed the next day: 14 subjects drawn by the kit and by several Gemini models writing SVG, judged the same way. Turn it into a routine: whenever the other author draws something better, name the technique and encode it. Run that way, the kit in the test grew to 55 metaphors. Gemini still wins some of the most elaborate compositions, and that’s fine: some variety across a catalog is a feature, not a flaw.

The short version

  • A competitor’s output is the cheapest spec you will ever get. We didn’t brainstorm “how to make chemistry richer”; we read three named techniques off images that already worked, and implemented those.
  • Encode the lesson, don’t copy the image. Copying one image would have fixed one page. Encoding banding, process and anti-symmetry into the kit fixed every science page.
  • Scout, then workhorse. Use the more inventive author to explore what “good” looks like; use the cheap, deterministic kit to ship it at volume.
  • Score honestly. Two ties, two narrow losses and two clear losses was the real starting point, and “close, not equal” is the real result on thermodynamics. Rounding it up would have hidden the next thing to fix.

Frequently Asked Questions

Was the other side a diffusion model?

No, and an earlier version of this article said so by mistake. Both sides were SVG: our kit draws with Python code, and Gemini (in Antigravity) wrote its own SVG markup for each brief. That keeps the comparison about technique rather than medium.

How do you know a rewritten vector scene isn’t silently broken?

Every scene is rasterized headless and checked for a healthy image, because a broken reference in SVG can render pure black while passing every text-based validity check. Structural validity is not the same as a good picture, so you look at the pixels.

Share post:

Subscribe

Popular

More like this
Related

WooCommerce Search by SKU or ISBN Finds Nothing? It Never Looks There

A shopper types the SKU from your catalog, or the ISBN printed on the back of a book, and gets "No products were found". The product is right there, and the number is on its page. Search simply never reads that part of the product.

Computer Slow but CPU and Memory Look Normal? Check the Handle Count

Chrome takes a minute to open, or doesn't open at all. Every click waits. You open Task Manager expecting to find the culprit, and it tells you everything is fine. Here is the number that isn't, and the fix that takes two minutes.

Kernel-Power 41 Tells You Your PC Restarted, Not Why

Your PC restarts with no blue screen, and the only clue is a critical event saying it didn't shut down cleanly. Here is how to get from that event to a short list of suspects.

Set Up WordPress SMTP Without a Plugin, Even on a Multisite Network

WordPress mail goes out as wordpress@ your domain, from the web server, and lands in spam. An SMTP plugin fixes that. So do about twenty lines of code, and on a network of sites the code can give every site its own mailbox and its own password.