Why Code-Driven AI Graphics Offer More Editing Control

Ask an AI image generator to nudge a headline two centimeters to the left, and you quickly learn why editing flat pixels can feel like negotiating with a sleep-deprived painter. Even when the overall scene holds together, a small revision can still warp lettering, shift proportions, or leave you wondering why a bird suddenly grew an extra wing.

For anyone making charts, posters, or blog visuals, there is a more controllable route than rolling the dice on another pixel pass. On November 28, 2026, developer Simon Willison published a widely shared post—reaching 464 points on Hacker News as of December 4, 2026—arguing that code-driven AI illustrations written by text models are often a better bet than dedicated image models for diagrams, UI components, editable posters, and game assets. That pattern fits a broader shift toward Gemini 4 Neon generating structured code rather than raw media outputs.

Where Code-Driven Graphics Address Bitmap Limits

Dedicated image generators—from early leaders like Stable Diffusion, DALL-E, and Midjourney to newer LLM-driven editors like Google's Nano Banana and OpenAI's ChatGPT Images—output flat bitmap graphics. Newer conversational editors have gotten much better at preserving details across multiple turns, yet Willison points out three recurring constraints:

  • Zoom-in artifacts: Fine details can still break into odd glitches when you inspect them up close.
  • Approximated typography: Models render letter shapes as pixels rather than using a real font system, so text consistency is never guaranteed.
  • Flat composition: You can describe changes in text or annotate an image, but you cannot directly grab an individual object or layer to adjust it.

(Willison later noted an exception: Ideogram 4.0 claims "bounding-box layout control" via structured JSON prompting, bringing tighter layout discipline to pixel generation.)

Generating graphics as SVG or HTML Canvas sidesteps those limits in different ways. Because SVG is structured XML text, well-organized elements, labels, and colors can be adjusted directly in code or opened in Inkscape, Adobe Illustrator, or Boxy SVG for visual editing. By contrast, HTML Canvas and script-driven outputs do not expose separate vector layers in the final image—you iterate by editing the underlying drawing code itself.

How the Workflow Works in Practice

To test Gemini 4 Neon in Google AI Studio, Willison started by asking the model to research real facts first and then design a 1970s-style SVG poster promoting New Zealand's kakapo recovery project.

AI Studio searched Google for the conservation numbers; Willison says he checked them and found them accurate. The illustration also depicts the bird perched among red rimu berries, a food source tied to its breeding season. Because Google AI Studio does not render SVGs, the model could not inspect its own visual layout automatically. Willison pasted screenshots back into the chat—asking for a more realistic bird face using image search references, then pointing out text that overflowed a pill shape—using the same kind of verification loops that keep coding agents on track during multi-step tasks.

Stepping beyond posters, Willison notes that connecting models like Claude Opus 5.5, GPT-6 Astra, or Gemini 4 Neon to a coding-agent environment turns any scriptable format into a canvas: HTML and CSS, 2D HTML Canvas, Blender scripts, WebGPU shaders, PDFs, and 3D game sprites or textures. Any visual output defined by a script or file on disk can be tweaked by writing more code, rather than settling for generic one-shot defaults.

Where This Leaves Anthropic, Google, and OpenAI

He recalls worrying that Anthropic was falling behind as Google and OpenAI expanded their visual tools—with Google offering Nano Banana alongside video models (Veo and Omni) and OpenAI offering ChatGPT Images (even after sunsetting Sora). For business users building slide decks, native image models looked essential.

Instead, as covered in AI & Automation, text-output models improved to the point where Claude can produce visually compelling presentations and website designs, and Claude Design provides a full design-system platform—capabilities Willison describes as built around code-driven graphics. Willison compares the shift to Rich Sutton's "bitter lesson": instead of relying solely on specialist image models for design tasks, general reasoning models became capable enough to draw by writing code.

Frequently Asked Questions

When should you still use an AI image generator instead of SVG code?

In Willison's view, dedicated image models such as Nano Banana, ChatGPT Images, or Midjourney still have their place when generating photorealistic images. He considers code-driven generation a better bet for explanatory diagrams, editable posters, UI components, visualizations, and game assets.

Can you edit AI-generated SVG illustrations without knowing how to code?

Yes. Even though the model writes XML vector code under the hood, you can save the .svg output and open it directly in visual tools such as Inkscape (free), Adobe Illustrator, or Boxy SVG to move shapes, swap colors, or retype headlines like any standard graphic file.

Why did Gemini 4 Neon need screenshots during the SVG poster test?

Google AI Studio does not render SVG files inside the chat window, so the model cannot visually check text alignment or proportions on its own. Pasting a screenshot of the rendered SVG lets the model spot overflowing labels and update the coordinates in the next turn.

Control Beats Magic on the Second Draft

Dedicated pixel generators still have a clear role whenever photorealism is the goal. Yet for the everyday graphics that fill blogs, slide decks, and product pages—diagrams, callouts, charts, and editable posters—the second or third revision is often where pixel tools feel most frustrating. Asking a text model to write the graphic as code gives you a more direct way to control and check later edits.

Jason Hunt