Skip to content

Functions (Transforms)

Juju Adams edited this page Mar 12, 2021 · 6 revisions

CleanTransformOriginSet(x, y)

Returns: N/A (undefined)

Name Datatype Purpose
x number x-coordinate of the origin for shapes, in worldspace
y number y-coordinate of the origin for shapes, in worldspace

 

 

CleanTransformOriginGet()

Returns: 2-element array, the origin for shapes

Name Datatype Purpose
None

 

 

CleanTransformAddMove(xOffset, yOffset)

Returns: N/A (undefined)

Name Datatype Purpose
xOffset number x-offset to move shapes
yOffset number y-offset to move shapes

 

 

CleanTransformAddRotate(angle)

Returns: N/A (undefined)

Name Datatype Purpose
angle number Angle of rotation, in degrees

 

 

CleanTransformAddScale(xScale, yScale)

Returns: N/A (undefined)

Name Datatype Purpose
xScale number Scaling factor for shapes, in the x-axis
yScale number Scaling factor for shapes, in the y-axis

 

 

CleanTransformAddSkew(xFactor, yFactor)

Returns: N/A (undefined)

Name Datatype Purpose
xFactor number Skew factor in the x-axis
yFactor number Skew factor in the y-axis

 

 

CleanTransformReset()

Returns: N/A (undefined)

Name Datatype Purpose
None

Resets the transform for shapes. This also resets the origin to (0, 0).