Model class representing a color used in the pattern.

A Color represents a color used in the pattern. The color is made up of one or more strands of Floss. Each strand can be a different color, allowing blended colors to be defined.

Hierarchy

  • Color

Constructors

  • Parameters

    • colorId: number

      An ID for the color. Stitches will use this ID to reference which color they are.

    • colorName: string

      A name for the overall color.

    • patternSymbol: string

      The ASCII character used to represent the color on the pattern visually.

    • flossStrands: Floss[]

      An array of Floss objects defining all the strands of floss that make up the color.

    • Optional hexCode: number

      Optionally defines the color's hexadecimal value.

    Returns Color

Properties

colorId: number

An ID for the color. Stitches will use this ID to reference which color they are.

colorName: string

A name for the overall color.

flossStrands: Floss[]

An array of Floss objects defining all the strands of floss that make up the color.

hexCode?: number

Optionally defines the color's hexadecimal value.

patternSymbol: string

The ASCII character used to represent the color on the pattern visually.

Generated using TypeDoc