Skip to main content
Version: Alpha 1

Mirror

Mirrors an object across a given origin point and axis. If the x and y parameters are not provided, it uses the object's own starting (x, y) coordinates as the origin for the mirror.

Usage

The Mirror modifier is used with the SET keyword.

Parameters

NameTypeDescription
xNumberThe x-coordinate of the origin point for the mirror.
yNumberThe y-coordinate of the origin point for the mirror.
axisstringThe axis to mirror across. Can be 'horizontal' or 'vertical'.

Example

// Create a line and then mirror it across the point (0,0) on the vertical axis
Line(x: 10, y: 20, x2: 80, y2: 50) SET Mirror('x: 0, y: 0, axis: "vertical"')