Think of it like the old turtle graphics feature in the LOGO programming language.
You give an LLM a virtual canvas and a set of “instructions” to control the pen.
https://en.wikipedia.org/wiki/Turtle_graphics