Nodes/comfyui-panels/Skew Polygon
ComfyUI Node

Skew Polygon

Tilt a panel out of shape for perspective and drama

By bmad4ever·Created 12 months ago·Updated 2 months ago· 41
Skew Polygon
  • polygon
  • origin
  • POLYGON
xs0.00
ys0.00

Skew Polygon is the distortion tool of the panel-shaping family - the one that turns rectangles into parallelograms and gives a page that aggressive, speed-line energy. It shears a panel along its axes by an angle, and it's the least-used of the Rotate/Scale/Skew trio for good reason: a little goes a long way, and it's the easiest of the three to overdo.

Mechanically it's a shapely affine skew: the X shear (xs) pushes points horizontally by an angle in degrees, the Y shear (ys) pushes them vertically, and the panel becomes a slanted version of itself while staying a clean polygon. Because it's pure vector math, the result flows straight into the mask and paste nodes with no quality loss - same contract as Rotate Polygon and Scale Polygon.

Inputs:

  • polygon - the panel to skew.
  • xs / ys - shear angles in degrees, -360 to 360, default 0. Zero means no shear on that axis.
  • origin (optional) - the pivot, a POLY_3O from the origin nodes. Default center; skew around a vertex pins that corner and throws the rest of the panel out of square.

Where it shines in a comic: a skewed panel reads as motion or perspective. Tilt a narrow panel's sides so it leans into the action - the classic manga "speed line" panel isn't always a straight rectangle. A slight skew can also make an otherwise-plain page feel hand-drawn, because real pages rarely have perfectly parallel gutters. Applied to just one panel while its neighbors stay square, it's a spotlight effect: the odd one out draws the eye.

The traps are real, though. A skew that's too large will push a panel's corners well outside its original footprint and can make it overlap neighbors or swing off the canvas - the pack won't clip that for you. And because skew warps the shape, not just the position, the mask and the crop both inherit the slant; if your generated art is a clean rectangle, you'll see the mismatch the moment you paste it back with Paste Crops with Masks. Either generate art that already matches the slanted panel, or accept the skew as a cropping guide rather than a literal border.

Practical guidance: keep skew angles in the low single digits unless you're doing something deliberately dramatic, and preview with Preview Panels after skewing - it's the fastest way to see whether the tilt reads as energy or as a bug.

Installing

Part of comfyui-panels by bmad4ever. Via ComfyUI Manager (search "comfyui-panels") and restart, or:

cd ComfyUI/custom_nodes
git clone https://github.com/bmad4ever/comfyui_panels

Deps: shapely, matplotlib, opencv-python - no models, no GPU. Shapely is pinned exactly; version clashes with other packs are the realistic import failure.

CategoryBmad/Panels

Inputs (4)

NameTypeDefaultDescription
polygonPOLYGON
xsFLOAT0.00-360–360
ysFLOAT0.00-360–360
originoptPOLY_3OThe origin point used for the operation. If none provided, the 'center' option is used.

Outputs (1)

NameTypeDescription
POLYGONPOLYGON