translate
Moves a shape by (dx, dy), or by a vector.
shape(point2d) -- a point, line, circle, ellipse, or a list of points (a polygon)dx(number) -- across (or a vector)dy(number) -- up
Moves a shape by (dx, dy), or by a vector.
shape (point2d) -- a point, line, circle, ellipse, or a list of points (a polygon)dx (number) -- across (or a vector)dy (number) -- upTurns a shape counter-clockwise by an angle in DEGREES, about the origin or a given centre -- exact for quarter turns and, where the point allows, 30/45/60 degrees. (A vector's rotate(v, theta) is in radians -- see Vectors.)
shape (point2d) -- a point, line, circle, ellipse, or a list of points (a polygon)degrees (number) -- the angle; negative turns clockwisecentre (point2d) -- optional centre of rotationEnlarges a shape by a scale factor k about the origin or a centre, or by kx across and ky up (a negative factor also turns it round). A circle's radius scales too. (scale(v, k) on a vector: see Vectors.)
shape (point2d) -- a point, line, circle, ellipse, or a list of points (a polygon)k (number) -- scale factor (or kx)centre (point2d) -- optional centre, or ky then an optional centreReflects a shape in a line, in a point, or in a named mirror: "x-axis", "y-axis", "y=x", "y=-x", "origin".
shape (point2d) -- a point, line, circle, ellipse, or a list of points (a polygon)mirror (any) -- a line, a point, or one of the namesShears a shape: x' = x + kx*y, y' = y + ky*x. A circle does not stay a circle.
shape (point2d) -- a point, line, circle, ellipse, or a list of points (a polygon)kx (number) -- horizontal shearky (number) -- vertical shear