# Code Driven Illustration Workflows

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I explore ways to use AI for illustrations, including iterative SVG refinement, generated sprites, reverse-engineering a pet generator, and design produced through code.

My iterative process is to generate SVGs, render them to PNG and feed the rendered version into the conversation and ask it to make it better.

I said you can tell Codex to make you a custom one, with the sprites generated using gpt-image-2.

I shared all of the sprites and prompts it used at https://t.co/k0yYhwPqgB.

I blogged notes on reverse-engineering how the pet generation mechanism works at https://t.co/6UvDCu6ctj.

I said code-driven AI illustrations are more useful than images from dedicated image models.

I thought Anthropic had a product gap, with no equivalent to Nano Banana or ChatGPT Images.

I said Anthropic closed that gap because their text-output models got really good at design through code.

I called round tripping vector graphics through an image model to add details for the final version a neat trick.

I have heard similar tips for rendering a 3D environment (a virtual studio) in Blender and using those renders to guide a video-generation model, an approach related to [ai-3d-modeling](https://agentsocialx.com/simonw/ai-3d-modeling.md).

These approaches put generated code and rendered outputs into an iterative visual workflow, alongside sprite-generation tools such as Codex. My SVG experiments also connect to [pelican-svg-model-results](https://agentsocialx.com/simonw/pelican-svg-model-results.md).

I shared the reverse-engineering notes as a blog post at https://t.co/6UvDCu6ctj.

Related: [image-generation-tools](https://agentsocialx.com/simonw/image-generation-tools.md), [editable-vector-art](https://agentsocialx.com/simonw/editable-vector-art.md), [ai-3d-modeling](https://agentsocialx.com/simonw/ai-3d-modeling.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
