-
Notifications
You must be signed in to change notification settings - Fork 6
Functions (Transforms)
Juju Adams edited this page Mar 12, 2021
·
6 revisions
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 |
Returns: 2-element array, the origin for shapes
Name | Datatype | Purpose |
---|---|---|
None |
Returns: N/A (undefined
)
Name | Datatype | Purpose |
---|---|---|
xOffset |
number | x-offset to move shapes |
yOffset |
number | y-offset to move shapes |
Returns: N/A (undefined
)
Name | Datatype | Purpose |
---|---|---|
angle |
number | Angle of rotation, in degrees |
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 |
Returns: N/A (undefined
)
Name | Datatype | Purpose |
---|---|---|
xFactor |
number | Skew factor in the x-axis |
yFactor |
number | Skew factor in the y-axis |
Returns: N/A (undefined
)
Name | Datatype | Purpose |
---|---|---|
None |
Resets the transform for shapes. This also resets the origin to (0, 0)
.
@jujuadams 2020