Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
docs: add lasso tool and gradient guides (#9175)
Valeri Che3fec11a14446
diff --git a/docs/astro.config.mjs b/docs/astro.config.mjsindex deb4ba4709..ee71f3726a 100644--- a/docs/astro.config.mjs+++ b/docs/astro.config.mjs@@ -30,6 +30,8 @@ const redirects = Object.fromEntries('/installation/requirements': '/start-here/system-requirements','/configuration': '/configuration/invokeai-yaml','/features/low-vram/': '/configuration/low-vram-mode/',+ '/features/lasso-tool': '/features/canvas/lasso-tool',+ '/features/shapes-tool': '/features/canvas/shapes-tool','/faq': '/troubleshooting/faq','/help/SAMPLER_CONVERGENCE': '/concepts/parameters','/help/diffusion': '/concepts/diffusion',diff --git a/docs/src/content/docs/features/Canvas/gradient-tool.mdx b/docs/src/content/docs/features/Canvas/gradient-tool.mdxnew file mode 100644index 0000000000..0c9dee0f92--- /dev/null+++ b/docs/src/content/docs/features/Canvas/gradient-tool.mdx@@ -0,0 +1,75 @@+---+title: Gradient Tool+description: Learn how to paint linear and radial gradients on canvas raster layers.+lastUpdated: 2026-05-16+sidebar:+ order: 4+---++import { Card, CardGrid } from '@astrojs/starlight/components';++The Gradient tool paints a smooth transition between your current foreground and background colors on the canvas.++You can activate the Gradient tool from the canvas toolbar.++## Where Gradient Draws++Gradient only draws into the **active raster layer**:++- It does not draw into inpaint masks.+- It does not draw into other non-raster layer types.+- The result is always clipped to the current **generation bounding box**.++If a raster layer is not selected, the tool is unavailable.++## Common Behavior++- Click and drag to define the gradient.+- Release the pointer to commit the gradient.+- Press <kbd>Esc</kbd> to discard the in-progress gradient.+- Hold <kbd>Alt</kbd> to temporarily switch to the color picker.+- Hold <kbd>Space</kbd> to temporarily switch to panning.++The Gradient tool uses the current **FG/BG color pair**:++- The **active** color swatch becomes the start color.+- The **inactive** color swatch becomes the end color.++## Gradient Modes++<CardGrid>+ <Card title="Linear">+ Click and drag to set the gradient direction. The drag defines the transition from the start color to the end+ color.+ </Card>+ <Card title="Radial">+ Click to place the center, then drag outward to set the radius. The gradient fades from the start color at the+ center to the end color toward the outside.+ </Card>+</CardGrid>++## Clip Gradient++The toolbar includes a **Clip Gradient** toggle:++- **Enabled:** Limits the gradient to the dragged region.+- **Disabled:** Lets the gradient extend across the full current bounding box.++In practice:++- A clipped **linear** gradient is limited to the span you dragged.+- A clipped **radial** gradient is limited to the circle you dragged out.+- With clipping disabled, both modes can be used to wash the entire bbox with a full gradient transition.++## Practical Examples++- Use **Linear** for sky fades, shadow ramps, and broad directional lighting.+- Use **Radial** for vignettes, glows, spotlights, and soft falloff around a focal point.+- Disable **Clip Gradient** when you want a full-bbox color transition.+- Keep **Clip Gradient** enabled when you only want to affect a localized area.++## Summary++The Gradient tool is a raster-only canvas tool for painting linear and radial color transitions. Use it when you want+soft blends between your FG and BG colors, and use **Clip Gradient** to decide whether the effect stays local or fills+the full bbox.diff --git a/docs/src/content/docs/features/Canvas/lasso-tool.mdx b/docs/src/content/docs/features/Canvas/lasso-tool.mdxnew file mode 100644index 0000000000..7cc676aa6f--- /dev/null+++ b/docs/src/content/docs/features/Canvas/lasso-tool.mdx@@ -0,0 +1,77 @@+---+title: Lasso Tool+description: Learn how to create and refine inpaint masks with the Lasso tool.+lastUpdated: 2026-05-15+sidebar:+ order: 2+---++import { Card, CardGrid } from '@astrojs/starlight/components';++The Lasso tool is the canvas's dedicated masking tool. It always draws into **inpaint mask layers** and is designed+for quickly defining irregular regions for inpainting.++You can activate the Lasso tool from the canvas toolbar or with the default hotkey <kbd>L</kbd>.++## Where Lasso Draws++Lasso always targets an **enabled inpaint mask**:++- If an enabled inpaint mask is currently selected, Lasso draws into that mask.+- If no enabled inpaint mask is available, Lasso creates a new inpaint mask automatically and commits the contour+ there.++:::note+If a disabled inpaint mask is selected, Lasso does not draw into the disabled mask. It creates a new enabled mask for+the next contour instead.+:::++## Common Behavior++- Lasso always commits a **closed contour**.+- Hold <kbd>Ctrl</kbd> on Windows/Linux or <kbd>Cmd</kbd> on macOS to switch to **subtractive** mode and remove area+ from the mask instead of adding to it.+- Press <kbd>Esc</kbd> to cancel the current lasso session.+- Hold <kbd>Space</kbd> during an active session to pan the viewport without discarding the unfinished contour.++## Lasso Modes++<CardGrid>+ <Card title="Freehand">+ Click and drag to sketch an irregular contour. Releasing the pointer closes and commits the contour automatically.+ </Card>+ <Card title="Polygon">+ Click to place vertices. Click the first point to close and commit the contour. Hold <kbd>Shift</kbd> while+ placing the next edge to snap it to horizontal, vertical, and 45 degree angles.+ </Card>+</CardGrid>++## Moving and Panning During Drawing++The Lasso tool uses <kbd>Space</kbd> for panning in both modes:++- **Freehand:** While drawing, hold <kbd>Space</kbd> to pan the viewport without discarding the unfinished contour.+ Release <kbd>Space</kbd> to continue drawing.+- **Polygon:** During an active polygon session, hold <kbd>Space</kbd> to pan the viewport without discarding the+ unfinished contour. Release <kbd>Space</kbd> and continue placing points.++This is especially useful when drawing large mask regions that extend beyond the current viewport.++## Working With Masks++- Use **Freehand** for organic shapes like hair, smoke, foliage, fabric, and quick blocking.+- Use **Polygon** when you need straight edges and deliberate corner placement.+- Use **subtractive mode** to trim or punch holes in an existing inpaint mask.+- Use Lasso when you want mask-first editing behavior without first creating a mask layer by hand.++## Practical Notes++- Polygon mode shows the starting point so you can close the contour precisely.+- After at least three polygon points, moving near the start point lets you click it to finish the shape.+- Freehand is faster for loose silhouettes. Polygon is better when edge placement matters.++## Summary++The Lasso tool is the fastest way to create and refine inpaint masks on the canvas. Use Freehand for organic regions,+Polygon for hard edges, and hold <kbd>Ctrl</kbd>/<kbd>Cmd</kbd> whenever you need to subtract from the mask instead of+adding to it.diff --git a/docs/src/content/docs/features/shapes-tool.mdx b/docs/src/content/docs/features/Canvas/shapes-tool.mdxsimilarity index 96%rename from docs/src/content/docs/features/shapes-tool.mdxrename to docs/src/content/docs/features/Canvas/shapes-tool.mdxindex a0b8ced59b..ba3fb782a0 100644--- a/docs/src/content/docs/features/shapes-tool.mdx+++ b/docs/src/content/docs/features/Canvas/shapes-tool.mdx@@ -2,6 +2,8 @@title: Shapes Tooldescription: Learn how to draw filled shapes on raster and inpaint mask layers with the Shapes tool.lastUpdated: 2026-05-11+sidebar:+ order: 1---import { Card, CardGrid } from '@astrojs/starlight/components';@@ -25,7 +27,8 @@ Shapes always draws into the **active raster target**::::noteShapes overlaps with some Lasso workflows on mask layers, but the tools are not identical. Lasso is still the more-specialized masking tool and can create a new mask layer automatically when one does not already exist.+specialized masking tool and can create a new mask layer automatically when one does not already exist. See the+[Lasso tool guide](./lasso-tool/) for mask-specific behavior.:::## Common Behavior