Code-driven AI illustrations are more useful than images from image models simon...
HN Best 200 @best
Code-driven AI illustrations are more useful than images from image models simonwillison.net · 26 points · 4 comments · HN thread
TL;DR Simon Willison argues that frontier text LLMs in late 2026 can produce useful 2D and 3D images by writing code (SVG, Canvas, Blender scripts, shaders), and that these code-defined images beat dedicated image models for most practical design work because they stay editable. He demonstrates with a 1970s-style SVG poster for the kakapo recovery project made in Gemini 4 Neon via AI Studio.
- Willison prompted Gemini 4 Neon in AI Studio to make an SVG poster promoting the kakapo recovery project in a 1970s graphic design style, then iterated through several rounds of fixes.
- AI Studio cannot render SVG, so the model could not see visual mistakes without screenshots pasted back in by the author.
- The poster's text, shapes and layers stay editable in the SVG, in a text editor or in tools like Inkscape, Illustrator or Boxy SVG.
- Code-defined images avoid the glitches of bitmap image models and get consistent text rendering through real fonts.
- Code can target many outputs: HTML/CSS, Canvas, Blender scripts, WebGPU shaders and PDF, and models like Claude Opus 5.5, GPT-6 Astra and Gemini 4 Neon are being used to generate game assets this way.
- Willison concedes dedicated image models still suit photorealistic images, and notes Anthropic's Claude now produces strong presentations and designs through code, contrary to his earlier expectation.
Discussion The thread is small and mostly agreeable. Most of the discussion centers on a side point raised by EdwardDiego about the macrons in the Māori word kākāpō, which the model added where the original prompt lacked them; he explains how macrons change vowel length and meaning, and praises the apparent use of a Māori grammar source. Other comments are brief: one links earlier HN discussions of the same topic, and two offer general takes on the core argument. The mood is calm and mildly positive.
- Editable code-based output is more valuable than flat renders (some): Commenters agree that a shareable, editable source such as code is more useful than a one-shot rasterized image. They compare it to asking a model for a single binary versus iterable code, and say the same holds for human work.
- Trade-off is editability versus polish (a few): One commenter frames the choice as editability versus polish, implying image models may still win on finished visual quality even though code output is more flexible.
- Praise for correct Māori macrons in the poster (a few): EdwardDiego highlights that the model correctly added macrons to kākāpō, explaining that they mark long vowels and change meaning, and notes that many people get this wrong.
- Not surprising observation (a few): One commenter says the finding is not especially surprising, since it mirrors general software practice where editable source beats exported artifacts.
Links from the comments