Model class representing a single back stitch in the pattern.

Back stitches can go laterally, vertically, or diagonally. A back stitch typically moves a full space in any of the possible directions, but 1/2 space fractional amounts are also supported. A back stitch can move across at most 1 grid space in any supported direction.

Hierarchy

  • BackStitch

Implements

Constructors

Properties

Constructors

  • Parameters

    • colorId: number

      The ID of the color of the stitch

    • x: number

      The x coordinate of the start of the stitch

    • y: number

      The y coordinate of the start of the stitch

    • x2: number

      The x2 coordinate of the end of the stitch

    • y2: number

      The y2 coordinate of the end of the stitch

    Returns BackStitch

Properties

colorId: number

The ID of the color of the stitch

x: number

The x coordinate of the start of the stitch

x2: number

The x2 coordinate of the end of the stitch

y: number

The y coordinate of the start of the stitch

y2: number

The y2 coordinate of the end of the stitch

Generated using TypeDoc