[{"data":1,"prerenderedAt":286},["ShallowReactive",2],{"navigation_docs":3,"-how-to-hand-edit-a-stage":148,"-how-to-hand-edit-a-stage-surround":281},[4,21,62,108],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":20},"Tutorials","i-lucide-graduation-cap","\u002Ftutorials","1.tutorials",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Your first texture","\u002Ftutorials\u002Ffirst-texture","1.tutorials\u002F1.first-texture","i-lucide-sprout",{"title":16,"path":17,"stem":18,"icon":19},"Grow a crop through its stages","\u002Ftutorials\u002Fgrowth-stages","1.tutorials\u002F2.growth-stages","i-lucide-wheat",false,{"title":22,"icon":23,"path":24,"stem":25,"children":26,"page":20},"How-to guides","i-lucide-wrench","\u002Fhow-to","2.how-to",[27,32,37,42,47,52,57],{"title":28,"path":29,"stem":30,"icon":31},"Install TextureScript","\u002Fhow-to\u002Finstall","2.how-to\u002F1.install","i-lucide-download",{"title":33,"path":34,"stem":35,"icon":36},"Compare a crop with vanilla","\u002Fhow-to\u002Fcompare-with-vanilla","2.how-to\u002F2.compare-with-vanilla","i-lucide-columns-2",{"title":38,"path":39,"stem":40,"icon":41},"Connect an agent","\u002Fhow-to\u002Fconnect-an-agent","2.how-to\u002F3.connect-an-agent","i-lucide-bot",{"title":43,"path":44,"stem":45,"icon":46},"Hand-edit a growth stage","\u002Fhow-to\u002Fhand-edit-a-stage","2.how-to\u002F4.hand-edit-a-stage","i-lucide-pencil",{"title":48,"path":49,"stem":50,"icon":51},"Turn a PNG into a grid","\u002Fhow-to\u002Fimport-a-png","2.how-to\u002F5.import-a-png","i-lucide-file-image",{"title":53,"path":54,"stem":55,"icon":56},"Prove a fix stayed in its region","\u002Fhow-to\u002Fprove-a-fix","2.how-to\u002F6.prove-a-fix","i-lucide-diff",{"title":58,"path":59,"stem":60,"icon":61},"Keep game assets out of git","\u002Fhow-to\u002Fkeep-game-assets-out","2.how-to\u002F7.keep-game-assets-out","i-lucide-shield-check",{"title":63,"icon":64,"path":65,"stem":66,"children":67,"page":20},"Reference","i-lucide-book-open","\u002Freference","3.reference",[68,73,78,83,88,93,98,103],{"title":69,"path":70,"stem":71,"icon":72},"Commands","\u002Freference\u002Fcommands","3.reference\u002F1.commands","i-lucide-terminal",{"title":74,"path":75,"stem":76,"icon":77},"Palette files","\u002Freference\u002Fpalette-files","3.reference\u002F2.palette-files","i-lucide-palette",{"title":79,"path":80,"stem":81,"icon":82},"Grid files","\u002Freference\u002Fgrid-files","3.reference\u002F3.grid-files","i-lucide-grid-3x3",{"title":84,"path":85,"stem":86,"icon":87},"Stages files","\u002Freference\u002Fstages-files","3.reference\u002F4.stages-files","i-lucide-layers",{"title":89,"path":90,"stem":91,"icon":92},"Scene files","\u002Freference\u002Fscene-files","3.reference\u002F5.scene-files","i-lucide-box",{"title":94,"path":95,"stem":96,"icon":97},"Lint rules","\u002Freference\u002Flint-rules","3.reference\u002F6.lint-rules","i-lucide-list-checks",{"title":99,"path":100,"stem":101,"icon":102},"MCP server","\u002Freference\u002Fmcp-server","3.reference\u002F7.mcp-server","i-lucide-plug",{"title":104,"path":105,"stem":106,"icon":107},"Environment","\u002Freference\u002Fenvironment","3.reference\u002F8.environment","i-lucide-settings",{"title":109,"icon":110,"path":111,"stem":112,"children":113,"page":20},"Explanation","i-lucide-lightbulb","\u002Fexplanation","4.explanation",[114,119,123,128,133,138,143],{"title":115,"path":116,"stem":117,"icon":118},"Textures as text","\u002Fexplanation\u002Ftextures-as-text","4.explanation\u002F1.textures-as-text","i-lucide-type",{"title":120,"path":121,"stem":122,"icon":77},"Colour from two anchors","\u002Fexplanation\u002Fcolour","4.explanation\u002F2.colour",{"title":124,"path":125,"stem":126,"icon":127},"Measured conventions","\u002Fexplanation\u002Fmeasured-conventions","4.explanation\u002F3.measured-conventions","i-lucide-ruler",{"title":129,"path":130,"stem":131,"icon":132},"Growth stages as maps","\u002Fexplanation\u002Fgrowth-stages","4.explanation\u002F4.growth-stages","i-lucide-chart-no-axes-column-increasing",{"title":134,"path":135,"stem":136,"icon":137},"The 3D view","\u002Fexplanation\u002Fthe-3d-view","4.explanation\u002F5.the-3d-view","i-lucide-rotate-3d",{"title":139,"path":140,"stem":141,"icon":142},"No game assets","\u002Fexplanation\u002Fno-game-assets","4.explanation\u002F6.no-game-assets","i-lucide-shield",{"title":144,"path":145,"stem":146,"icon":147},"Architecture","\u002Fexplanation\u002Farchitecture","4.explanation\u002F7.architecture","i-lucide-boxes",{"id":149,"title":43,"body":150,"description":274,"extension":275,"links":276,"meta":277,"navigation":278,"path":44,"seo":279,"stem":45,"__hash__":280},"docs\u002F2.how-to\u002F4.hand-edit-a-stage.md",{"type":151,"value":152,"toc":271},"minimark",[153,157,252,257,267],[154,155,156],"p",{},"A stage map can only make pixels appear. When a young stage needs a pixel somewhere the mature\nplant does not have it, such as a root crop's sprout drawn down to the soil line, edit that\nstage by hand.",[158,159,160,181,188,214],"ol",{},[161,162,163,164],"li",{},"Generate the stages as usual:",[165,166,171],"pre",{"className":167,"code":168,"language":169,"meta":170,"style":170},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","texturescript stages carrot.stages out\n","sh","",[172,173,174],"code",{"__ignoreMap":170},[175,176,179],"span",{"class":177,"line":178},"line",1,[175,180,168],{},[161,182,183,184,187],{},"Open the grid of the stage to change, for example ",[172,185,186],{},"out\u002Fstage0\u002Flower.grid",". Keep its palette\nsection and draw with its keys, choosing the shades the stage should show.",[161,189,190,191,194,195,204,207,209,210,213],{},"Regenerate with ",[172,192,193],{},"--keep",":",[165,196,198],{"className":167,"code":197,"language":169,"meta":170,"style":170},"texturescript stages carrot.stages out --keep\n",[172,199,200],{"__ignoreMap":170},[175,201,202],{"class":177,"line":178},[175,203,197],{},[205,206],"br",{},[172,208,193],{}," renders the existing ",[172,211,212],{},"stageN\u002FHALF.grid"," files as drawn instead of overwriting them.\nShifts and recolours are not applied to a kept grid again. Every stage is still linted.",[161,215,216,217,220,221,245,247,248,251],{},"Point your scene at the output folder, not the ",[172,218,219],{},".stages"," file, so it shows your edit:",[165,222,226],{"className":223,"code":224,"language":225,"meta":170,"style":170},"language-toml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[[plot]]\nlabel = \"carrot\"\nstages = \"out\"\n","toml",[172,227,228,233,239],{"__ignoreMap":170},[175,229,230],{"class":177,"line":178},[175,231,232],{},"[[plot]]\n",[175,234,236],{"class":177,"line":235},2,[175,237,238],{},"label = \"carrot\"\n",[175,240,242],{"class":177,"line":241},3,[175,243,244],{},"stages = \"out\"\n",[205,246],{},"To see both, use variants: ",[172,249,250],{},"stages = { generated = \"carrot.stages\", edited = \"out\" }",".",[253,254,256],"h2",{"id":255},"start-over","Start over",[154,258,259,260,262,263,266],{},"Run without ",[172,261,193],{}," to overwrite every stage with the generated version. Use a fresh output\nfolder if you removed a half or reduced the number of stages: ",[172,264,265],{},"stages"," refuses to write next to\nstale outputs and leaves existing files alone.",[268,269,270],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":170,"searchDepth":235,"depth":235,"links":272},[273],{"id":255,"depth":235,"text":256},"Redraw one generated stage when a pixel has to move, and keep your edit when you regenerate.","md",null,{},{"icon":46},{"title":43,"description":274},"j7AqQZWwOMzPH1JItiHi0Az7g_kBt7naPnxWfTOHbEU",[282,284],{"title":38,"path":39,"stem":40,"description":283,"icon":41,"children":-1},"Give an AI agent the authoring skill, the vanilla references and the MCP tools.",{"title":48,"path":49,"stem":50,"description":285,"icon":51,"children":-1},"Convert an existing texture into an editable grid.",1791722218351]