Trapezoid Transform

Transforms

Stretches or narrows the top and bottom of a texture.

Select a node to adjust its parameters. Double-click a node to inspect.

Inputs

  • input

Parameters

ParameterTypeDefaultRangeDescription
top_stretch
Top Stretch
float0-1 to 1Narrows the top for positive values and widens it for negative values. Zero preserves its width.
bottom_stretch
Bottom Stretch
float0-1 to 1Narrows the bottom for positive values and widens it for negative values. Zero preserves its width.
addressing
Addressing
enumrepeatHow transformed source coordinates outside 0-1 are handled. Repeat wraps sampling, but does not guarantee a tiling-safe transform.
  • background : Fill out-of-bounds transformed areas with Background Color.
  • clamp : Clamp out-of-range coordinates or values to the edge.
  • repeat : Wrap out-of-range coordinates or values back into the 0-1 range.
background_color
Background Color
color[0, 0, 0, 1]Color used when transformed coordinates fall outside the input.
filter_mode
Filter
enumbilinearTexture filtering mode.
  • bilinear : Use bilinear sampling for smoother resampling.
  • nearest : Use nearest-neighbor sampling for hard pixel edges.

Outputs

  • output (default format: inherit)