Code128Barcode

The bar/space module widths of an encoded Code 128 symbol, in drawing order.

The list always starts with a bar and strictly alternates bar, space, bar, space, ... A renderer walks modules left to right, drawing a filled bar for even indices and leaving a gap (space) for odd indices, each n modules wide.

Each value is 1..4 modules wide. Every standard symbol (start code, data, checksum) is 11 modules (3 bars + 3 spaces); the trailing stop pattern is 13 modules (4 bars + 3 spaces) because it carries the terminating bar.

Properties

Link copied to clipboard

ordered bar/space widths, first element is a bar.

Link copied to clipboard

Total width of the symbol in modules — the sum of every entry in modules.