LinePattern

LinePattern
LinePattern: (number[] | Uint8Array)

Specifies the appearance of a single repetion of a line pattern. The format is an arbitrary-length array of 1s and 0s, where pixels covered by a 1 in the pattern are visible and pixels covered by a 0 are invisible.

Examples:

  • [1,0]: a dashed line with equal-length dashes and gaps
  • [1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,0,0,0]: a dash followed by a gap of equal length with a dot in the center