Nodes/GraftingRayman/GR Flip Tile Random Red Ring
ComfyUI Node

GR Flip Tile Random Red Ring

The tile-flip effect, with a colored ring around what changed

By GraftingRayman·Created 2 years ago·Updated about a month ago· 76
GR Flip Tile Random Red Ring
  • image
  • flipped_tile_image
  • IMAGE
  • IMAGE
columns
rows
border0
colour
border_thickness5
seed363893811091794

The more capable sibling of GR Flip Tile Random Inverted, from the same pack's Tiles category. It does the same grid-flip mosaic effect, but adds two things the plain version lacks: a seed for reproducible results, and the option to drop a specific replacement image into the flipped tiles instead of just inverting the originals. Despite the name, the ring color isn't locked to red - colour gives you seven choices, so "Red Ring" reads as this node's original working name from whatever the author first built it for, rather than a hard constraint on what you can actually output.

How it works

Same grid slicing as its sibling: columns and rows define the tile grid. Where it diverges is the optional flipped_tile_image input - if you wire one in, the tiles selected as "flipped" get replaced with content from that image instead of simply inverting the original tile's pixels, which opens up effects like stamping a texture, a logo, or an entirely different image into random cells of the grid. Each flipped tile gets a border_thickness ring around it in colour, which is what gives the effect its visual pop and its name - a clear highlight showing exactly which tiles were altered, rather than leaving the viewer to spot the difference unaided. seed makes the random tile selection reproducible.

The inputs and outputs that matter

  • image - the base image to tile.
  • columns / rows - grid density.
  • flipped_tile_image (optional) - supply this to replace flipped tiles with different content instead of inverting the original; leave it unconnected and you get the invert-style behavior of the plain sibling node.
  • colour (7 choices) and border_thickness (default 5) - the ring highlighting which tiles changed.
  • seed - reproducible tile selection, the thing this node has that its sibling doesn't.

Two outputs, both IMAGE, again undistinguished by name in the schema - preview both to see which is the result you want.

How to install it

Search GraftingRayman in ComfyUI Manager, or manually:

cd ComfyUI/custom_nodes
git clone https://github.com/GraftingRayman/ComfyUI_GraftingRayman

Restart. This pack needs OpenAI's CLIP installed as a separate step or nothing imports - portable ComfyUI: .\python_embeded\python.exe -m pip install git+https://github.com/openai/CLIP.git; system Python: pip install git+https://github.com/openai/CLIP.git.

Common issues & troubleshooting

Pack fails to load. Check your console for the CLIP import error at startup and run the pip install above.

Same seed gives a different result than expected after changing the grid. seed controls which tiles get selected relative to the current columns/rows grid - changing the grid size changes the selection even with the seed held constant, since there are a different number of tiles to choose from.

flipped_tile_image doesn't seem to be doing anything. Confirm it's actually connected - leave it unwired and the node presumably falls back to inverting the original tiles rather than substituting new content, matching the plain sibling's behavior.

Ring isn't visible. border_thickness defaults to 5, which should be visible, but check colour isn't blending into the surrounding image - pick a colour that contrasts with your source image if the ring is hard to spot.

CategoryGraftingRayman/Tiles

Inputs (8)

NameTypeDefaultDescription
imageIMAGE
columnsINT
rowsINT
borderINT0
colourCOMBO7 options: black, white, red, blue, green, purple, +1
border_thicknessINT5
seedINT363893811091794100000000000000–999999999999999
flipped_tile_imageoptIMAGE

Outputs (2)

NameTypeDescription
IMAGEIMAGE
IMAGEIMAGE