barcode icon indicating copy to clipboard operation
barcode copied to clipboard

Externalize Pattern Generation

Open samt opened this issue 11 years ago • 0 comments

Take all pattern generation code and place it into a function to generate it.

Should have this prototype:

/*
 * @param String|Array sequence - Sequence of compatible characters for encoding
 * @param String|Int checkdigit - calculated check digit
 * @return Array<Int> - Array of bar/space widths (alternating, starting with bar)
 */
function generateSequence(sequence, checkdigit) { } 

samt avatar Aug 14 '14 22:08 samt