Nodes/ComfyUI-Field/Field Shape
ComfyUI Node

Field Shape

A ComfyUI node in AKURATE/Fields/Generate with 19 inputs and 3 outputs.

By jeremieLouvaert·Created 2 months ago·Updated 4 days ago· 1
Field Shape
  • reference_image
  • reference_mask
  • mask
  • preview
  • sdf
◄shapecircle►
◄size_x0.250►
◄size_y0.250►
◄rotation0►
◄center_x0.50►
◄center_y0.50►
◄sides5►
◄star_ratio0.50►
◄corner_radius0.000►
◄falloff0.000►
◄aa_width1.0►
◄sdf_range0.250►
◄distributionnative►
◄coverage0.50►
◄invertfalse►
◄width512►
◄height512►
CategoryAKURATE/Fields/Generate

Inputs (19)

NameTypeDefaultDescription
shapeCOMBOcircle4 options: circle, rect, polygon, star
size_xFLOAT0.2500.01–2Drawn half-extent along x before rotation, fraction of frame S. Soft falloff and the sdf output are approximate on strongly elongated shapes (docs/field-phase2c-derivation.md 1.2)
size_yFLOAT0.2500.01–2Drawn half-extent along y before rotation, fraction of frame S. Soft falloff and the sdf output are approximate on strongly elongated shapes (docs/field-phase2c-derivation.md 1.2)
rotationFLOAT0-360–360Degrees, counter-clockwise. Inert for a round circle (size_x == size_y)
center_xFLOAT0.50-1–2—
center_yFLOAT0.50-1–2—
sidesINT53–12Polygon / star point count
star_ratioFLOAT0.500.1–0.95Inner/outer radius ratio, star only. Clamped to the achievable range for `sides` (see console note)
corner_radiusFLOAT0.0000–0.5Rect only
falloffFLOAT0.0000–1Authored soft edge width, fraction of S. 0 = hard
aa_widthFLOAT1.00–4Antialias width, pixels. No-op once falloff exceeds it
sdf_rangeFLOAT0.2500.001–1Clamp range for the raw sdf output, fraction of S
distributionCOMBOnative2 options: native, uniform
coverageFLOAT0.500–1—
invertBOOLEANfalse—
widthINT51216–8192—
heightINT51216–8192—
reference_imageoptIMAGE—
reference_maskoptMASK—

Outputs (3)

NameTypeDescription
maskMASK—
previewIMAGE—
sdfMASK—