// Line of length 0.2 with middle at 0.5,0.5 fromPivot({ x:0.5, y:0.5 }, 0.2); // Same line, but on an angle fromPivot({ x:0.5, y:0.5 }, 0.2, degreesToRadian(45));
// ...now with pivot point at 20%, rather than center fromPivot({ x:0.5, y:0.5 }, 0.2, degreesToRadian(45), 0.2);
Examples:
Angle of 0 (deg/rad) results in a horizontal line,
Creates a line from an origin point.
Examples: