# NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

# supershape.transform()

## Syntax

    path(path, m, n1, n2, n3, points=1000)

## Description

Returns a copy of the given path supertransformed by m, n1, n2 and n3. See the path() command in this library for more information on how the parameters work. You can supertransform anything from rectangles and circles to texpaths and SVG.

This command relies on the Bezier library.

## Example

    supershape = ximport("supershape")
    bezier = ximport("bezier")

    nofill()
    stroke(0)

    font("Times", 100)
    path = textpath("FUN!", 100, 150)

    for contour in bezier.contours(path):
      contour = supershape.transform(contour, 50, 0.25, 3.5, 3.5)
      drawpath(contour)