Studio Yotsuba
Back to Node List

Pixel Patch

pixel_patch

Edit and apply a patch that records only changed pixels on top of an image

Reviewed
Guide available

Input Ports

NameTypeDescription
Image
image
Image
Optional source image to patch

Output Ports

NameTypeDescription
Image
image
Image
Patched image preview
Patch
patch
PixelPatch
Patch document that stores only changed pixels

Parameters

NameTypeDefaultRangeDescription / Options
Width
width
Int
321–256

Patch canvas width in pixels

Height
height
Int
321–256

Patch canvas height in pixels

Patch Data
patch_data
CustomData
——

Editor-managed patch payload

What is it for?

  • Manually fixing only part of a generated result
  • Keeping manual corrections visible in the graph instead of hidden state
  • Toggling the same patch or applying it to another image

Overview

Layers a hand-drawn correction difference (patch) over a generated result. Corrections remain independent data containing only changed pixels, so they survive upstream generation edits and can be toggled or reused on another image.

Usage tips

  • The node excels at combining procedural generation with manual cleanup. Connect noise_generate or a similar source to pixel_patch, then fix only a few pixels with the pen. The correction remains at the same coordinates when upstream parameters change.
  • Route the patch output through patch_toggle / patch_merge to toggle or gather corrections with wiring.
  • Large redraws are outside this node's scope; make those changes in the source asset.

Related nodes

  • patch_apply / patch_toggle / patch_merge — apply and control patches
  • image_manual_diff — turns an external correction into a patch
  • pixel_cleanup — mechanical cleanup; choose between manual and automatic methods

Patch editor

Open the dedicated editor with the "Edit Patch" button in the Inspector.

  • Pen: writes difference pixels
  • Eraser: places a difference that makes the coordinate transparent
  • Color: chooses the drawing color
  • Grid: toggles the grid display
  • Zoom: changes magnification
  • Clear All: resets the current patch to empty

Notes

  • The image input is for preview. The patch itself flows independently from the patch output.
  • The current patch editor edits only the patch. It cannot yet overlay the image input inside the editor.
  • The node works without a connected image. In that case, the image output draws only the patch on a transparent canvas.
  • The patch target dimensions come from width / height. They must match the source image dimensions at PatchApply.

Examples

  1. Noise Generate -> Pixel Patch -> Preview
    • Manually fix only part of an automatically generated image.
  2. Pixel Patch.patch -> PatchToggle -> PatchApply
    • Compare with and without the manual correction while retaining it.
  3. Pixel Patch.patch -> PatchMerge
    • Manage several manual correction patches together.
Back to Node List