⬡ Hexagonal Pixelate
A Honeycomb Mosaic That's a Leg Up on Square Pixels
- image
- IMAGE
Hexagonal Pixelate rebuilds your image out of hexagons - the honeycomb effect that shows up all over sci-fi UIs, gaming aesthetics, and poster design where square pixels just feel too ordinary. It's pixelation's more interesting cousin: same "blocky mosaic" idea, but the grid is hexagonal, so the mosaic reads as engineered and futuristic rather than retro-8-bit.
It's one of the pack's Geometric effects (alongside Crystallize, Triangulate and Voronoi). Unlike Crystallize's irregular random shards, this one imposes a precise, regular honeycomb lattice - which is both its charm and its limitation. Use it when you want order and pattern, not chaos.
How it works
The node lays a hexagonal grid over the image at the size you set (hex_size), then assigns each hexagon a color sampled from the source area it covers. The color_mode controls how that sample is taken: average blends all the pixels under the hexagon (smooth, faithful), center takes just the center pixel (crisper, more contrast between cells), and dominant tries to pick the most representative color (a middle ground). Then it draws the filled hexagons with optional seams.
The extras are where it gets fun. spacing (0.5–1, default 0.9) controls the gap between cells - lower it and the hexagons shrink into a dotted honeycomb with background showing through. rotation (0–60°) spins the whole lattice, which changes how the pattern aligns with your subject. outline + outline_thickness draw the cell borders, which gives the effect its "wireframe honeycomb" look.
The inputs that matter
- hex_size (5–100, default 20) - cell size in pixels. 10–30 is a mosaic; 60+ becomes an abstract pattern.
- color_mode - average, center, or dominant.
- spacing (0.5–1, default 0.9) - cell gap; the "dotted" dial.
- rotation (0–60, default 0) - lattice orientation.
- outline / outline_thickness (1–3) - cell borders, for the technical look.
Output is the hex-mosaiced IMAGE.
Installing it
Part of ComfyUI-Image-Effects (Orion4D). ComfyUI Manager → search "Image Effects", or:
cd ComfyUI/custom_nodes
git clone https://github.com/orion4d/ComfyUI-Image-Effects
cd ComfyUI-Image-Effects
pip install -r requirements.txt
Restart, then it's under Add Node → Image Effects. It uses OpenCV for polygon drawing - already covered by the pack's dependencies.
Gotchas
Standard pack behavior: only the first image of a batch is processed, and it's CPU NumPy, so big hex grids on 4K images are the slow end of the pack. The one design trap: with spacing much below 0.9 and a light background, the gaps read as noise instead of pattern - drop the spacing only when you want that dotted aesthetic on purpose. And remember the hexagon size is the resolution here; if the result is too chunky, reduce hex_size rather than trying to upscale your way out of it.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| hex_size | INT | 205–100 | — |
| color_mode | COMBO | average | 3 options: average, center, dominant |
| spacingopt | FLOAT | 0.900.5–1 | — |
| rotationopt | FLOAT | 00–60 | — |
| outlineopt | BOOLEAN | false | — |
| outline_thicknessopt | INT | 11–3 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |