[{"data":1,"prerenderedAt":253},["ShallowReactive",2],{"navigation_docs":3,"-user-guide-tools-fill":127,"-user-guide-tools-fill-surround":248},[4,23,91,109],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"Getting Started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Download","\u002Fgetting-started\u002Fdownload","1.getting-started\u002F2.download",{"title":19,"path":20,"stem":21},"Roadmap","\u002Fgetting-started\u002Froadmap","1.getting-started\u002F3.roadmap",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"User Guide","i-lucide-book-open","\u002Fuser-guide","2.user-guide",[29,75,79,83,87],{"title":30,"icon":31,"path":32,"stem":33,"children":34,"page":22},"Tools","i-lucide-wrench","\u002Fuser-guide\u002Ftools","2.user-guide\u002F1.tools",[35,39,43,47,51,55,59,63,67,71],{"title":36,"path":37,"stem":38},"Brush","\u002Fuser-guide\u002Ftools\u002Fbrush","2.user-guide\u002F1.tools\u002F1.brush",{"title":40,"path":41,"stem":42},"Crop","\u002Fuser-guide\u002Ftools\u002Fcrop","2.user-guide\u002F1.tools\u002F10.crop",{"title":44,"path":45,"stem":46},"Eraser","\u002Fuser-guide\u002Ftools\u002Feraser","2.user-guide\u002F1.tools\u002F2.eraser",{"title":48,"path":49,"stem":50},"Shapes","\u002Fuser-guide\u002Ftools\u002Fshapes","2.user-guide\u002F1.tools\u002F3.shapes",{"title":52,"path":53,"stem":54},"Selection","\u002Fuser-guide\u002Ftools\u002Fselection","2.user-guide\u002F1.tools\u002F4.selection",{"title":56,"path":57,"stem":58},"Fill","\u002Fuser-guide\u002Ftools\u002Ffill","2.user-guide\u002F1.tools\u002F5.fill",{"title":60,"path":61,"stem":62},"Gradient","\u002Fuser-guide\u002Ftools\u002Fgradient","2.user-guide\u002F1.tools\u002F6.gradient",{"title":64,"path":65,"stem":66},"Color Picker","\u002Fuser-guide\u002Ftools\u002Fcolor-picker","2.user-guide\u002F1.tools\u002F7.color-picker",{"title":68,"path":69,"stem":70},"Text","\u002Fuser-guide\u002Ftools\u002Ftext","2.user-guide\u002F1.tools\u002F8.text",{"title":72,"path":73,"stem":74},"Transform","\u002Fuser-guide\u002Ftools\u002Ftransform","2.user-guide\u002F1.tools\u002F9.transform",{"title":76,"path":77,"stem":78},"Layers & Compositing","\u002Fuser-guide\u002Flayers-and-compositing","2.user-guide\u002F2.layers-and-compositing",{"title":80,"path":81,"stem":82},"Canvas Workflow","\u002Fuser-guide\u002Fcanvas-workflow","2.user-guide\u002F3.canvas-workflow",{"title":84,"path":85,"stem":86},"Documents","\u002Fuser-guide\u002Fdocuments","2.user-guide\u002F4.documents",{"title":88,"path":89,"stem":90},"Troubleshooting","\u002Fuser-guide\u002Ftroubleshooting","2.user-guide\u002F5.troubleshooting",{"title":92,"icon":93,"path":94,"stem":95,"children":96,"page":22},"Tips & Tricks","i-lucide-lightbulb","\u002Ftips-and-tricks","3.tips-and-tricks",[97,101,105],{"title":98,"path":99,"stem":100},"Canvas & Gestures","\u002Ftips-and-tricks\u002Fcanvas-and-gestures","3.tips-and-tricks\u002F1.canvas-and-gestures",{"title":102,"path":103,"stem":104},"Brushes & Strokes","\u002Ftips-and-tricks\u002Fbrushes-and-strokes","3.tips-and-tricks\u002F2.brushes-and-strokes",{"title":106,"path":107,"stem":108},"Color & Selections","\u002Ftips-and-tricks\u002Fcolor-and-selections","3.tips-and-tricks\u002F3.color-and-selections",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":22},"Development","i-lucide-code","\u002Fdevelopment","4.development",[115,119,123],{"title":116,"path":117,"stem":118},"Development Overview","\u002Fdevelopment\u002Foverview","4.development\u002F1.overview",{"title":120,"path":121,"stem":122},"AI & LLM Usage","\u002Fdevelopment\u002Fai-and-llm-usage","4.development\u002F2.ai-and-llm-usage",{"title":124,"path":125,"stem":126},"Changelog","\u002Fdevelopment\u002Fchangelog","4.development\u002F3.changelog",{"id":128,"title":56,"body":129,"description":241,"extension":242,"links":243,"meta":244,"navigation":245,"path":57,"seo":246,"stem":58,"__hash__":247},"docs\u002F2.user-guide\u002F1.tools\u002F5.fill.md",{"type":130,"value":131,"toc":234},"minimark",[132,136,140,145,148,151,155,158,164,171,174,193,200,204,223,231],[133,134,56],"h1",{"id":135},"fill",[137,138,139],"p",{},"The Fill tool flood-fills a contiguous area with the primary color, starting\nfrom where you click.",[141,142,144],"h2",{"id":143},"drag-to-adjust-the-threshold","Drag to adjust the threshold",[137,146,147],{},"The fill lands as soon as you press, but the gesture isn't over until you let\ngo. Keep holding and drag sideways to change how far it spreads: right fills\nmore, left fills less. The area is refilled as you move, so you can settle on\nthe right amount by eye instead of guessing at the Tolerance slider first. The\npercentage shows on canvas while you drag, the slider follows along, and the\nvalue you land on is kept for the next fill.",[137,149,150],{},"The whole gesture is one undo step, no matter how much you moved.",[141,152,154],{"id":153},"smart-edges","Smart Edges",[137,156,157],{},"Anti-aliased line art has a band of half-blended pixels along every contour. A\nplain flood fill stops at the first of them, which leaves the pale fringe you\nget in most paint programs and no amount of Tolerance fixes it - raise it far\nenough and the fill jumps the line entirely.",[137,159,160,163],{},[161,162,154],"strong",{}," handles that band without any settings. From the edge of the\nregion it walks outward while each step lands further from the color you clicked",[165,166,167],"ul",{},[168,169,170],"li",{},"which is exactly the shape of an anti-aliasing ramp - and stops at the ramp's\npeak, the middle of the line. Crisp outlines end the walk after one pixel, soft\nones after several, and it cannot cross to the far side of a line because that\nis where the ramp starts falling again.",[137,172,173],{},"How those edge pixels are painted depends on what they held:",[165,175,176,187],{},[168,177,178,181,182,186],{},[161,179,180],{},"Clicked on empty canvas"," - the fill goes in ",[183,184,185],"em",{},"underneath"," the existing\npixels. The line keeps its own anti-aliasing and the fill boundary inherits\nit, so the edge comes out as smooth as the line you drew.",[168,188,189,192],{},[161,190,191],{},"Clicked on a solid color"," - the edge pixels are a mix of that color and the\nline, so the fill takes over exactly the share that belonged to the color you\nclicked and leaves the line's share alone. Same blend, new color, no\nstaircase.",[137,194,195,196,199],{},"Where the line art sits in the layer stack is taken into account too. Line art\non the layer you are filling, or on a layer above it, blends the fill for you,\nso the fill goes in solid and lets it. With the line art ",[183,197,198],{},"below"," the fill layer\nthere is nothing to do that, so the fill carries the soft edge itself rather\nthan painting over the line.",[141,201,203],{"id":202},"options","Options",[165,205,206,212,217],{},[168,207,208,211],{},[161,209,210],{},"Tolerance"," - how far the fill spreads across neighbouring colors. Low\ntolerance stays within tight edges, higher tolerance bleeds across softer\nboundaries. With Smart Edges on it no longer has to be tuned for outlines,\nonly for how much variation counts as \"the same color\" - and dragging during\na fill is usually quicker than setting it here.",[168,213,214,216],{},[161,215,154],{}," - the edge handling described above. Turn it off for a plain\nhard-edged flood fill.",[168,218,219,222],{},[161,220,221],{},"Use all Layers"," - decide where the fill spreads from the composite of every\nvisible layer, while still painting into the active one. This is what lets you\ncolor on a separate layer from your line art.",[137,224,225,226,230],{},"If a ",[227,228,229],"a",{"href":53},"selection"," is active, the fill is clipped to\nit - including the edge walk.",[137,232,233],{},"A fill lands on the layer the moment it is worked out; the outward sweep you see\nafterwards is just presentation, and it is skipped while you are dragging the\nthreshold. Undo takes the fill back, and clicking again straight away starts a\nsecond fill without disturbing the first.",{"title":235,"searchDepth":236,"depth":236,"links":237},"",2,[238,239,240],{"id":143,"depth":236,"text":144},{"id":153,"depth":236,"text":154},{"id":202,"depth":236,"text":203},"Flood-fill an area with the current color.","md",null,{},true,{"title":56,"description":241},"Z2vg46if3zrzO1WDbFMPYN_-t5hO-oZLZSknOhpkwz0",[249,251],{"title":52,"path":53,"stem":54,"description":250,"children":-1},"Constrain edits to a region with rectangular, elliptical or freehand selections.",{"title":60,"path":61,"stem":62,"description":252,"children":-1},"Linear, radial and square gradients with multi-stop editing.",1788292910453]