Class ThreeQuarterStitch

Model class representing a single three quarter stitch in the pattern.

A three quarter stitch is simply a quarter stitch and a half stitch combined. Therefore, the half stitch angle and the quarter stitch placement must be given. For a 45 degree angle half stitch top-left and bottom-right are valid quarterStitchPlacement values. Conversely, for a 135 degree angle half stitch top-right and bottom-right are valid quarterStitchPlacement values.

Hierarchy

  • ThreeQuarterStitch

Implements

Constructors

  • Parameters

    • colorId: number

      The ID of the color of the stitch.

    • x: number

      The x coordinate of the lower left corner of the square on the grid.

    • y: number

      The y coordinate of the lower left corner of square on the grid.

    • halfStitchAngle: StitchAngle

      The angle of the half stitch which can be either 45 or 135.

    • quarterStitchPlacement: StitchPlacement

      The placement of the quarter stitch within the square on the grid.

    Returns ThreeQuarterStitch

Properties

colorId: number

The ID of the color of the stitch.

halfStitchAngle: StitchAngle

The angle of the half stitch which can be either 45 or 135.

quarterStitchPlacement: StitchPlacement

The placement of the quarter stitch within the square on the grid.

x: number

The x coordinate of the lower left corner of the square on the grid.

y: number

The y coordinate of the lower left corner of square on the grid.

Generated using TypeDoc